diff options
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/polygon/b2dpolygoncutandtouch.cxx | 2 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dsvgpolypolygon.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx index a8ae6372d5ea..99a73ca82bc3 100644 --- a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx +++ b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx @@ -278,7 +278,7 @@ namespace basegfx const sal_uInt32 nPointCountA(rCandidateA.count()); const sal_uInt32 nPointCountB(rCandidateB.count()); - if(!(nPointCountA > 1 && nPointCountB > 1)) + if(nPointCountA <= 1 || nPointCountB <= 1) return; const sal_uInt32 nEdgeCountA(nPointCountA - 1); diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx index e8ec2cf6e76e..323fff14c024 100644 --- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx +++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx @@ -93,7 +93,7 @@ namespace basegfx::utils bool bRelative(false); const sal_Unicode aCurrChar(rSvgDStatement[nPos]); - if(o_rPolyPolygon.count() && !aCurrPoly.count() && !(aCurrChar == 'm' || aCurrChar == 'M')) + if(o_rPolyPolygon.count() && !aCurrPoly.count() && aCurrChar != 'm' && aCurrChar != 'M') { // we have a new sub-polygon starting, but without a 'moveto' command. // this requires to add the current point as start point to the polygon |