fix -Wdangling-else warning in clipper.cpp
This commit is contained in:
parent
7c5cdc8e2c
commit
d9b9b0efac
1 changed files with 7 additions and 1 deletions
8
deps/clipper/src/clipper.cpp
vendored
8
deps/clipper/src/clipper.cpp
vendored
|
@ -2839,11 +2839,17 @@ void Clipper::PrepareHorzJoins(TEdge* horzEdge, bool isTopOfScanbeam)
|
|||
//the AEL before we process the horizontal edges at the bottom of the next,
|
||||
//we need to create 'ghost' Join records of 'contrubuting' horizontals that
|
||||
//we can compare with horizontals at the bottom of the next SB.
|
||||
if (isTopOfScanbeam)
|
||||
if (isTopOfScanbeam)
|
||||
{
|
||||
if (outPt->Pt == horzEdge->Top)
|
||||
{
|
||||
AddGhostJoin(outPt, horzEdge->Bot);
|
||||
}
|
||||
else
|
||||
{
|
||||
AddGhostJoin(outPt, horzEdge->Top);
|
||||
}
|
||||
}
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue