Commit 4df9b921 authored by Eugene Pin's avatar Eugene Pin
Browse files

Regalge d'un bug sur neighborhoodDialog

parent 8b139896
Pipeline #79326 canceled with stage
......@@ -59,7 +59,8 @@ void NeighborhoodDialog::ResizeCreateGrid(int x, int y, Neighborhood& n)
}
else {
Coord newNeighborAbsolute = {currentPoint.x + newNeighborRelative.x, currentPoint.y + newNeighborRelative.y};
if( (newNeighborAbsolute.x < x && newNeighborAbsolute.y < y)) {
if( (newNeighborAbsolute.x < x && newNeighborAbsolute.y < y) &&
(newNeighborAbsolute.x >= 0 && newNeighborAbsolute.y >= 0)) {
newGrid.set_cell(newNeighborAbsolute, 1);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment