Skip to content

Commit

Permalink
fixes double "out of bound" error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ypujante committed Jan 11, 2023
1 parent 874a8a9 commit fcea416
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/cpp/re/edit/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,10 +498,13 @@ void Graphics::findErrors(AppContext &iCtx, UserError &oErrors) const
{
oErrors.add("Out of bound");
}
p = getBottomRight();
if(p.x < 0 || p.y < 0 || p.x > max.x || p.y > max.y)
else
{
oErrors.add("Out of bound");
p = getBottomRight();
if(p.x < 0 || p.y < 0 || p.x > max.x || p.y > max.y)
{
oErrors.add("Out of bound");
}
}
}

Expand Down

0 comments on commit fcea416

Please sign in to comment.