summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2011-10-17 17:01:31 +0200
committerRadek Doulik <rodo@novell.com>2011-10-17 17:03:40 +0200
commita3f899125e6d619e185d5e8317d3abd6ac541c14 (patch)
tree81260c8354e67430b603dea92e7c55bc6606b5fa
parent46cd7bb96d08e81b01549e0467be19dfcb81eb84 (diff)
update flip(mirror) properties setting for custom shape presets
-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" );