diff options
-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(); |