summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2015-05-27 12:47:29 +0200
committerAndras Timar <andras.timar@collabora.com>2015-05-27 14:04:48 +0000
commit1a4eeac14b618714bb8be9755f508ee63ac4a422 (patch)
tree20c7699d164bb6610b15c097a46b4d801b8901f9
parentb37b5e115fc29b0fcc02bba73826a775d06a7f79 (diff)
tdf#90338 related: ignore empty shape handles struct
Change-Id: I486564a124cfb0d13a8b20e89cf13e752ccb7237 Reviewed-on: https://gerrit.libreoffice.org/15923 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r--oox/source/export/shapes.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx
index fedeefb34ebe..2beec40ff8fa 100644
--- a/oox/source/export/shapes.cxx
+++ b/oox/source/export/shapes.cxx
@@ -400,8 +400,12 @@ ShapeExport& ShapeExport::WriteCustomShape( Reference< XShape > xShape )
rProp.Value >>= bFlipV;
if ( rProp.Name == "AdjustmentValues" )
nAdjustmentValuesIndex = i;
- else if ( rProp.Name == "Handles" ) {
- bHasHandles = true;
+ else if ( rProp.Name == "Handles" )
+ {
+ uno::Sequence<beans::PropertyValue> aHandles;
+ rProp.Value >>= aHandles;
+ if ( aHandles.getLength() )
+ bHasHandles = true;
if( !bIsDefaultObject )
bPredefinedHandlesUsed = false;
// TODO: update nAdjustmentsWhichNeedsToBeConverted here