use std::abs
This commit is contained in:
@@ -2152,13 +2152,13 @@ void Clipper::IntersectEdges(TEdge *e1, TEdge *e2,
|
||||
else if (e1->PolyTyp != e2->PolyTyp)
|
||||
{
|
||||
//toggle subj open path OutIdx on/off when Abs(clip.WndCnt) == 1 ...
|
||||
if ((e1->WindDelta == 0) && abs(e2->WindCnt) == 1 &&
|
||||
if ((e1->WindDelta == 0) && std::abs(e2->WindCnt) == 1 &&
|
||||
(m_ClipType != ctUnion || e2->WindCnt2 == 0))
|
||||
{
|
||||
AddOutPt(e1, Pt);
|
||||
if (e1Contributing) e1->OutIdx = Unassigned;
|
||||
}
|
||||
else if ((e2->WindDelta == 0) && (abs(e1->WindCnt) == 1) &&
|
||||
else if ((e2->WindDelta == 0) && (std::abs(e1->WindCnt) == 1) &&
|
||||
(m_ClipType != ctUnion || e1->WindCnt2 == 0))
|
||||
{
|
||||
AddOutPt(e2, Pt);
|
||||
|
||||
Reference in New Issue
Block a user