Skip to content

Commit

Permalink
Clipper.Offset: Fixed another compile issue in previous revision
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusJohnson committed Mar 24, 2024
1 parent e0a8f10 commit 3bc5e49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CPP/Clipper2Lib/src/clipper.offset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@ void ClipperOffset::DoGroupOffset(Group& group)
void ClipperOffset::ZCB(const Point64& bot1, const Point64& top1,
const Point64& bot2, const Point64& top2, Point64& ip)
{
if ((bot1.z != 0) && (bot1.z == bot2.z) || (bot1.z == top2.z)) ip.z = bot1.z;
else if ((bot2.z != 0) && (bot2.z == top1.z)) ip.z = bot2.z;
else if ((top1.z != 0) && (top1.z == top2.z)) ip.z = top1.z;
if (bot1.z && ((bot1.z == bot2.z) || (bot1.z == top2.z))) ip.z = bot1.z;
else if (bot2.z && (bot2.z == top1.z)) ip.z = bot2.z;
else if (top1.z && (top1.z == top2.z)) ip.z = top1.z;
else if (zCallback64_) zCallback64_(bot1, top1, bot2, top2, ip);
}
#endif
Expand Down

0 comments on commit 3bc5e49

Please sign in to comment.