Assume begin_cell_centroid to what the name tells us: an iterator over then centroids.

Therfore we do not need to call center() in getCoordinate. This is done in the iterator
class returned from CpGrid.
This commit is contained in:
Markus Blatt
2014-02-20 10:45:08 +01:00
parent 21864388bd
commit b328c13bc0

View File

@@ -494,7 +494,7 @@ namespace
template<class T>
double getCoordinate(T t, int i)
{
return t->center()[i];
return (*t)[i];
}