diff options
Diffstat (limited to 'basegfx/source/polygon/b2dpolygontriangulator.cxx')
-rw-r--r-- | basegfx/source/polygon/b2dpolygontriangulator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basegfx/source/polygon/b2dpolygontriangulator.cxx b/basegfx/source/polygon/b2dpolygontriangulator.cxx index c2df4c1c8a30..11ed7514c838 100644 --- a/basegfx/source/polygon/b2dpolygontriangulator.cxx +++ b/basegfx/source/polygon/b2dpolygontriangulator.cxx @@ -279,7 +279,7 @@ namespace basegfx const B2DVector aLeft(pEdgeA->getEnd() - pEdgeA->getStart()); const B2DVector aRight(pEdgeB->getEnd() - pEdgeA->getStart()); - if(B2VectorOrientation::Neutral == getOrientation(aLeft, aRight)) + if(getOrientation(aLeft, aRight) == B2VectorOrientation::Neutral) { // edges are parallel and have different length -> neutral triangle, // delete both edges and handle closing edge @@ -391,7 +391,7 @@ namespace basegfx aCandidate.removeDoublePoints(); aCandidate = tools::removeNeutralPoints(aCandidate); - if(2 == aCandidate.count()) + if(aCandidate.count() == 2) { // candidate IS a triangle, just append aRetval.append(aCandidate); @@ -422,7 +422,7 @@ namespace basegfx // subdivide locally (triangulate does not work with beziers) B2DPolyPolygon aCandidate(rCandidate.areControlPointsUsed() ? tools::adaptiveSubdivideByAngle(rCandidate) : rCandidate); - if(1 == aCandidate.count()) + if(aCandidate.count() == 1) { // single polygon -> single polygon triangulation const B2DPolygon aSinglePolygon(aCandidate.getB2DPolygon(0)); |