remove check which was alywas true

This commit is contained in:
Patrick Brosi 2021-09-10 12:36:19 +02:00
parent 16e66e59a5
commit cfc41d01e7

View file

@ -89,8 +89,8 @@ void Grid<V, G, T>::get(const Box<T>& box, std::set<V>* s) const {
size_t neX = getCellXFromX(box.getUpperRight().getX()); size_t neX = getCellXFromX(box.getUpperRight().getX());
size_t neY = getCellYFromY(box.getUpperRight().getY()); size_t neY = getCellYFromY(box.getUpperRight().getY());
for (size_t x = swX; x <= neX && x >= 0 && x < _xWidth; x++) for (size_t x = swX; x <= neX && x < _xWidth; x++)
for (size_t y = swY; y <= neY && y >= 0 && y < _yHeight; y++) get(x, y, s); for (size_t y = swY; y <= neY && y < _yHeight; y++) get(x, y, s);
} }
// _____________________________________________________________________________ // _____________________________________________________________________________