diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-01 09:48:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-01 15:32:30 +0200 |
commit | 779489ca5ad11476b39555d7b3169d320ff89d4b (patch) | |
tree | cf0e871cc394026403eb99a6f3f29b54d5d1ddbc | |
parent | 3f379f00b17268fbb63ba072d04336acb0c7e398 (diff) |
tdf#137544 reserve space in polygon
Change-Id: I868584965b122735b8eb55cc17a3ee11a772b88a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136721
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | basegfx/source/polygon/b2dpolygontools.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx index c6eb3cf5b28b..4b8550546e5c 100644 --- a/basegfx/source/polygon/b2dpolygontools.cxx +++ b/basegfx/source/polygon/b2dpolygontools.cxx @@ -3330,6 +3330,8 @@ namespace basegfx::utils if(0 != nCount) { + aRetval.reserve(nCount); + const css::awt::Point* pPointSequence = rPointSequenceSource.getConstArray(); const css::drawing::PolygonFlags* pFlagSequence = rFlagSequenceSource.getConstArray(); |