diff options
author | Radek Doulik <rodo@novell.com> | 2011-12-07 13:37:12 +0100 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2011-12-07 14:03:58 +0100 |
commit | e9877935b0d09c7a8321632632c440496a957b0c (patch) | |
tree | 78218809bdea67a6c385f2c4d007e0224a274736 /oox | |
parent | f0bf2a2ae95ddad3d08ddd1413ec56bf04224a94 (diff) |
pptx: make sure we set right type for connector shapes
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/customshapeproperties.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/oox/source/drawingml/customshapeproperties.cxx b/oox/source/drawingml/customshapeproperties.cxx index e0c1fd7f29ad..77eb2967f169 100644 --- a/oox/source/drawingml/customshapeproperties.cxx +++ b/oox/source/drawingml/customshapeproperties.cxx @@ -167,8 +167,10 @@ void CustomShapeProperties::pushToPropSet( const ::oox::core::FilterBase& /* rFi OSL_TRACE("connector shape: %s (%d)", USS(sConnectorShapeType), mnShapePresetType); //const uno::Reference < drawing::XShape > xShape( xPropSet, UNO_QUERY ); Reference< drawing::XEnhancedCustomShapeDefaulter > xDefaulter( xShape, UNO_QUERY ); - if( xDefaulter.is() ) + if( xDefaulter.is() ) { xDefaulter->createCustomShapeDefaults( sConnectorShapeType ); + aPropertyMap[ PROP_Type ] <<= Any( sConnectorShapeType ); + } } else if (maPresetsMap.find(mnShapePresetType) != maPresetsMap.end()) { @@ -229,7 +231,10 @@ void CustomShapeProperties::pushToPropSet( const ::oox::core::FilterBase& /* rFi } else if ( aGeoPropSeq[ i ].Name.equals( sType ) ) { - aGeoPropSeq[ i ].Value <<= CREATE_OUSTRING( "ooxml-CustomShape" ); + if ( sConnectorShapeType.getLength() > 0 ) + aGeoPropSeq[ i ].Value <<= sConnectorShapeType; + else + aGeoPropSeq[ i ].Value <<= CREATE_OUSTRING( "ooxml-CustomShape" ); } } } |