diff options
Diffstat (limited to 'drawinglayer/source')
-rw-r--r-- | drawinglayer/source/primitive2d/textlayoutdevice.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/primitive2d/textlayoutdevice.cxx b/drawinglayer/source/primitive2d/textlayoutdevice.cxx index 78e0c23189ad..fcc9b401fa48 100644 --- a/drawinglayer/source/primitive2d/textlayoutdevice.cxx +++ b/drawinglayer/source/primitive2d/textlayoutdevice.cxx @@ -308,7 +308,7 @@ std::vector<double> TextLayouterDevice::getTextArray(const OUString& rText, sal_ if (nTextLength) { aRetval.reserve(nTextLength); - std::vector<sal_Int32> aArray(nTextLength); + std::vector<sal_Int32> aArray; mrDevice.GetTextArray(rText, &aArray, nIndex, nTextLength); aRetval.assign(aArray.begin(), aArray.end()); } |