summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oox/source/drawingml/customshapeproperties.cxx20
1 files changed, 9 insertions, 11 deletions
diff --git a/oox/source/drawingml/customshapeproperties.cxx b/oox/source/drawingml/customshapeproperties.cxx
index 68b05fea99d7..585ec4316d6a 100644
--- a/oox/source/drawingml/customshapeproperties.cxx
+++ b/oox/source/drawingml/customshapeproperties.cxx
@@ -111,29 +111,27 @@ void CustomShapeProperties::pushToPropSet( const ::oox::core::FilterBase& /* rFi
if (maPresetsMap.empty())
initializePresetsMap();
+ PropertyMap aPropertyMap;
+ PropertySet aPropSet( xPropSet );
+
if (maPresetsMap.find(mnShapePresetType) != maPresetsMap.end()) {
OSL_TRACE("found property map for preset: %s (%d)", USS(getShapePresetTypeName()), mnShapePresetType);
- Sequence< PropertyValue > aSeq = maPresetsMap[ mnShapePresetType ].makePropertyValueSequence();
- PropertySet aPropSet( xPropSet );
- aPropSet.setProperty( PROP_CustomShapeGeometry, aSeq );
+ aPropertyMap = maPresetsMap[ mnShapePresetType ];
}
else
{
//const uno::Reference < drawing::XShape > xShape( xPropSet, UNO_QUERY );
Reference< drawing::XEnhancedCustomShapeDefaulter > xDefaulter( xShape, UNO_QUERY );
if( xDefaulter.is() )
- {
- PropertyMap aPropertyMap;
- PropertySet aPropSet( xPropSet );
- aPropertyMap[ PROP_MirroredX ] <<= Any( mbMirroredX );
- aPropertyMap[ PROP_MirroredY ] <<= Any( mbMirroredY );
- Sequence< PropertyValue > aSeq = aPropertyMap.makePropertyValueSequence();
- aPropSet.setProperty( PROP_CustomShapeGeometry, aSeq );
xDefaulter->createCustomShapeDefaults( getShapePresetTypeName() );
- }
}
+ aPropertyMap[ PROP_MirroredX ] <<= Any( mbMirroredX );
+ aPropertyMap[ PROP_MirroredY ] <<= Any( mbMirroredY );
+ Sequence< PropertyValue > aSeq = aPropertyMap.makePropertyValueSequence();
+ aPropSet.setProperty( PROP_CustomShapeGeometry, aSeq );
+
if ( maAdjustmentGuideList.size() )
{
const OUString sType = CREATE_OUSTRING( "Type" );