summaryrefslogtreecommitdiff
path: root/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
diff options
context:
space:
mode:
authorhdu <duerr@sun.com>2009-10-22 15:55:15 +0200
committerhdu <duerr@sun.com>2009-10-22 15:55:15 +0200
commitaa99d186de8cd2841cd7aabc371f68f1e05bae1f (patch)
tree9f1ae6ae5abf09c7a5995981421d57f63330dd9b /basegfx/source/polygon/b2dpolygoncutandtouch.cxx
parent6d8370250d2e64ff8ea6047fae628ee68df1f822 (diff)
#i106127# more pre-allocations to prevent reallocations
Diffstat (limited to 'basegfx/source/polygon/b2dpolygoncutandtouch.cxx')
-rw-r--r--basegfx/source/polygon/b2dpolygoncutandtouch.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
index e35e22ae3a04..da6ff8904725 100644
--- a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
+++ b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx
@@ -711,6 +711,7 @@ namespace basegfx
// create subdivided polygon and find cuts on it
// Keep adaptiveSubdivideByCount due to needed quality
+ aTempPolygon.reserve(SUBDIVIDE_FOR_CUT_TEST_COUNT + 8);
aTempPolygon.append(rCubicA.getStartPoint());
rCubicA.adaptiveSubdivideByCount(aTempPolygon, SUBDIVIDE_FOR_CUT_TEST_COUNT);
findTouches(aTempPolygon, rPointPolygon, aTempPointVector);