[Libreoffice-commits] core.git: oox/source

Stephan Bergmann sbergman at redhat.com
Mon Feb 27 12:49:54 UTC 2017


 oox/source/vml/vmlshape.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 597fd6c8c281381f2205a6d4dd7920ce0079ef7d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Feb 27 13:48:10 2017 +0100

    Probably better to restrict the sequence size
    
    ...to any elements actually written.  Was like that ever since the code's
    introduction in d3ffe3ed3fa1b80c7e54439673029e105940db80 "fdo#67737 : fix for
    flip not being imported & rendered correctly".
    
    Change-Id: I460c1c7c578bd7e53cc2e868da0b7aeb5f19194f

diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx
index 9c2f427..e90ee90 100644
--- a/oox/source/vml/vmlshape.cxx
+++ b/oox/source/vml/vmlshape.cxx
@@ -800,7 +800,8 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes
         // The associated properties "PROP_MirroredX" and "PROP_MirroredY" have to be set here so that direction change will occur internally.
         if (bFlipX || bFlipY)
         {
-            css::uno::Sequence< css::beans::PropertyValue > aPropSequence (2);
+            css::uno::Sequence< css::beans::PropertyValue > aPropSequence (
+                bFlipX && bFlipY ? 2 : 1);
             int nPropertyIndex = 0;
             if (bFlipX)
             {


More information about the Libreoffice-commits mailing list