Skip to content

Commit

Permalink
Fixed a minor syntax error tripping some C++ compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusJohnson committed Nov 28, 2023
1 parent 41851ca commit 98db566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CPP/Clipper2Lib/src/clipper.offset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ void ClipperOffset::DoGroupOffset(Group& group)

// when shrinking outer paths, make sure they can shrink this far (#593)
// also when shrinking holes, make sure they too can shrink this far (#715)
if (group_delta_ > 0 == ToggleBoolIf(*is_hole_it, group.is_reversed) &&
if ((group_delta_ > 0) == ToggleBoolIf(*is_hole_it, group.is_reversed) &&
(std::min(path_rect_it->Width(), path_rect_it->Height()) <= -group_delta_ * 2) )
continue;

Expand Down

0 comments on commit 98db566

Please sign in to comment.