diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-27 13:48:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-27 13:48:10 +0100 |
commit | 597fd6c8c281381f2205a6d4dd7920ce0079ef7d (patch) | |
tree | 9e30e9694f96f6732688fbcbfc749819151f01d7 /oox | |
parent | e8147b4b7107cc2fdb68a76deb3d30296a67434d (diff) |
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
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/vml/vmlshape.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx index 9c2f4277cb0f..e90ee9093970 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) { |