diff --git a/src/util/geo/Grid.tpp b/src/util/geo/Grid.tpp index 144a69d..9e01098 100644 --- a/src/util/geo/Grid.tpp +++ b/src/util/geo/Grid.tpp @@ -89,8 +89,8 @@ void Grid::get(const Box& box, std::set* s) const { size_t neX = getCellXFromX(box.getUpperRight().getX()); size_t neY = getCellYFromY(box.getUpperRight().getY()); - for (size_t x = swX; x <= neX && x >= 0 && x < _xWidth; x++) - for (size_t y = swY; y <= neY && y >= 0 && y < _yHeight; y++) get(x, y, s); + for (size_t x = swX; x <= neX && x < _xWidth; x++) + for (size_t y = swY; y <= neY && y < _yHeight; y++) get(x, y, s); } // _____________________________________________________________________________