Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LO21_Pin_Noir_Boucher_Bouri_Detree
CellulutLO21
Commits
4df9b921
Commit
4df9b921
authored
Jun 07, 2021
by
Eugene Pin
Browse files
Regalge d'un bug sur neighborhoodDialog
parent
8b139896
Pipeline
#79326
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/neighborhoodDialog.cpp
View file @
4df9b921
...
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment