From cfc41d01e7237070d04079856b114f393f27973c Mon Sep 17 00:00:00 2001 From: Patrick Brosi Date: Fri, 10 Sep 2021 12:36:19 +0200 Subject: [PATCH] remove check which was alywas true --- src/util/geo/Grid.tpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } // _____________________________________________________________________________