summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/polygon/b2dsvgpolypolygon.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/basegfx/source/polygon/b2dsvgpolypolygon.cxx b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
index 991e50bf60f0..2fdacad3653f 100644
--- a/basegfx/source/polygon/b2dsvgpolypolygon.cxx
+++ b/basegfx/source/polygon/b2dsvgpolypolygon.cxx
@@ -722,7 +722,14 @@ namespace basegfx
bool bOOXMLMotionPath)
{
const sal_uInt32 nCount(rPolyPolygon.count());
- OUStringBuffer aResult;
+ sal_uInt32 nCombinedPointCount = 0;
+ for(sal_uInt32 i(0); i < nCount; i++)
+ {
+ const B2DPolygon& aPolygon(rPolyPolygon.getB2DPolygon(i));
+ nCombinedPointCount += aPolygon.count();
+ }
+
+ OUStringBuffer aResult(std::max<int>(nCombinedPointCount * 32,512));
B2DPoint aCurrentSVGPosition(0.0, 0.0); // SVG assumes (0,0) as the initial current point
for(sal_uInt32 i(0); i < nCount; i++)
-64&id=a95def1aed681bbb664ff24470e0da7c5a5530ac'>convert java wizards to .properties for translationsCaolán McNamara 2017-05-22Access2Base - Class attribute in <span> tagJean-Pierre Ledure 2017-05-21Resolves: tdf#107964 partially revert "unused basic dialog"Caolán McNamara 2017-05-21expand and drop python getResArrayCaolán McNamara 2017-05-07tdf#107668: fix form wizardJulien Nabet 2017-05-02unused wizards basic file and dialogCaolán McNamara 2017-04-30coverity#1405739 Explicit null dereferencedCaolán McNamara 2017-04-27Access2Base - Optimize default value in field classJean-Pierre Ledure 2017-04-27ImageList python thing unused since WebWizard dropCaolán McNamara 2017-04-27remove wizards bitmaps from .src filesCaolán McNamara 2017-04-27Access2Base - Missing declaration of oObjectJean-Pierre Ledure 2017-04-12enum spelling: throught -> throughJustin Luth 2017-04-07tdf#99967 (related) Drop Web Wizard HIDsGabor Kelemen 2017-04-05Access2Base - Solving some trouble with bigint variablesJean-Pierre Ledure 2017-03-30Access2Base Missing parentheses - tdf#106710Jean-Pierre Ledure 2017-03-27Access2Base Missing parentheses - tdf#106710Jean-Pierre Ledure 2017-03-27tdf#106529: fix closing parentheses of bundled macrosAndreas Säger 2017-03-25Fix typosAndrea Gelmini 2017-03-25Access2Base Missing parentheses - Bug #106710Jean-Pierre Ledure 2017-03-19Fix typos + some German translationsAndrea Gelmini 2017-03-18Access2Base - Get and set On... properties on dialog eventsJean-Pierre Ledure