summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon/b2dpolypolygontools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/source/polygon/b2dpolypolygontools.cxx')
-rw-r--r--basegfx/source/polygon/b2dpolypolygontools.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx b/basegfx/source/polygon/b2dpolypolygontools.cxx
index 75b6d38a19df..b763aef823c2 100644
--- a/basegfx/source/polygon/b2dpolypolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolypolygontools.cxx
@@ -215,23 +215,23 @@ namespace basegfx::utils
fFullDashDotLen = std::accumulate(rDotDashArray.begin(), rDotDashArray.end(), 0.0);
}
- if(rCandidate.count() && fFullDashDotLen > 0.0)
+ if(!(rCandidate.count() && fFullDashDotLen > 0.0))
+ return;
+
+ B2DPolyPolygon aLineTarget;
+
+ for(auto const& rPolygon : rCandidate)
{
- B2DPolyPolygon aLineTarget;
+ applyLineDashing(
+ rPolygon,
+ rDotDashArray,
+ pLineTarget ? &aLineTarget : nullptr,
+ nullptr,
+ fFullDashDotLen);
- for(auto const& rPolygon : rCandidate)
+ if(pLineTarget)
{
- applyLineDashing(
- rPolygon,
- rDotDashArray,
- pLineTarget ? &aLineTarget : nullptr,
- nullptr,
- fFullDashDotLen);
-
- if(pLineTarget)
- {
- pLineTarget->append(aLineTarget);
- }
+ pLineTarget->append(aLineTarget);
}
}
}