diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-26 14:06:34 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-04-07 17:43:47 +0200 |
commit | 1c27690356904dbf16b56fab3c17566f3a66c866 (patch) | |
tree | 2b861f762c38427a25c0e587ea9e58111d9da3ec | |
parent | 432161d163e32abec9fe48ff06e70a75c951e3e7 (diff) |
forcepoint #35 handle odd number of dimension fragments
Change-Id: I97e4e1b38d80276077b3427c90ae33023afb5e59
Reviewed-on: https://gerrit.libreoffice.org/51901
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
(cherry picked from commit bd89b70a2f7ecccfa2edc965121c4b5976e54db9)
-rw-r--r-- | xmloff/source/draw/ximpcustomshape.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/draw/ximpcustomshape.cxx b/xmloff/source/draw/ximpcustomshape.cxx index fbb5822c919e..594cbc5d787d 100644 --- a/xmloff/source/draw/ximpcustomshape.cxx +++ b/xmloff/source/draw/ximpcustomshape.cxx @@ -484,7 +484,7 @@ void GetSizeSequence( std::vector< css::beans::PropertyValue >& rDest, if ( !vNum.empty() ) { - uno::Sequence< awt::Size > aSizeSeq( vNum.size() / 2 ); + uno::Sequence< awt::Size > aSizeSeq((vNum.size() + 1) / 2); std::vector< sal_Int32 >::const_iterator aIter = vNum.begin(); std::vector< sal_Int32 >::const_iterator aEnd = vNum.end(); awt::Size* pValues = aSizeSeq.getArray(); |