diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-03-06 12:16:12 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-03-06 12:16:12 +0000 |
commit | 27c5268dd9908b749ca251e172944278d761a335 (patch) | |
tree | 271bc17dd27ffacba00651edf93412e877561877 /filter/source | |
parent | e214f0bd5a2a3edc331dae8d1695f4cc9f10b98a (diff) |
reserve the known amount we'll append
Change-Id: Ib476453eb3c527cc8c3be679ebc6267a0b53d10e
Diffstat (limited to 'filter/source')
-rw-r--r-- | filter/source/graphicfilter/ipict/shape.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/filter/source/graphicfilter/ipict/shape.cxx b/filter/source/graphicfilter/ipict/shape.cxx index 5aca6d47dba8..99b8719ad623 100644 --- a/filter/source/graphicfilter/ipict/shape.cxx +++ b/filter/source/graphicfilter/ipict/shape.cxx @@ -240,6 +240,7 @@ void drawPolygon(VirtualDevice *dev, bool drawFrame, tools::Polygon const &orig, using namespace basegfx; B2DPolygon poly; + poly.reserve(numPt); // Note: a polygon can be open, so we must not close it when we draw the frame for (int i = 0; i < numPt; i++) { Point const &pt = orig.GetPoint(i); |