summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorPhilipp Lohmann <Philipp.Lohmann@Sun.COM>2009-10-21 15:50:46 +0200
committerPhilipp Lohmann <Philipp.Lohmann@Sun.COM>2009-10-21 15:50:46 +0200
commit8ba680819eb86d89f62886e984c7ee558fe7473d (patch)
treea92cf3d1bdf9f0440ebaa8cf0398f0bb30356635 /basegfx
parent9e8d18328987be288a84e686eee1d4c35d8754e9 (diff)
parentc94382c18059ecf000d1becbffa5425812dcc3f6 (diff)
merge
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/polygon/b2dpolygoncutandtouch.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
index 26016942717d..9d40acc0dcab 100644
--- a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
+++ b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
@@ -497,6 +497,11 @@ namespace basegfx
const B2DCubicBezier& rCubicA,
sal_uInt32 nInd, temporaryPointVector& rTempPoints)
{
+ double fDummy;
+ const bool bHasAnyExtremum = rCubicA.getMinimumExtremumPosition( fDummy );
+ if( !bHasAnyExtremum )
+ return;
+
// find all self-intersections on the given bezier segment. Add an entry to the tempPoints
// for each self intersection point with the cut value describing the relative position on given
// bezier segment.