xmloff/source/draw/ximpcustomshape.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 84d88ac8dc1763280ec45d0c341b1658d4af14b6 Author: Caolán McNamara <caol...@redhat.com> Date: Mon Mar 26 14:06:34 2018 +0100 forcepoint #35 handle odd number of dimension fragments Change-Id: I97e4e1b38d80276077b3427c90ae33023afb5e59 Reviewed-on: https://gerrit.libreoffice.org/51900 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Michael Stahl <michael.st...@cib.de> diff --git a/xmloff/source/draw/ximpcustomshape.cxx b/xmloff/source/draw/ximpcustomshape.cxx index 83f3e31e4b06..2632abda1805 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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits