Skip to content

Commit 98db566

Browse files
committed
Fixed a minor syntax error tripping some C++ compilers
1 parent 41851ca commit 98db566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CPP/Clipper2Lib/src/clipper.offset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ void ClipperOffset::DoGroupOffset(Group& group)
594594

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

0 commit comments

Comments
 (0)