[Libreoffice-commits] .: oox/source

Muthu Subramanian sumuthu at kemper.freedesktop.org
Thu Sep 8 23:46:51 PDT 2011


 oox/source/drawingml/customshapeproperties.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 9db8c812829114e6df4095ea9aacc307c63a51c4
Author: Muthu Subramanian <sumuthu at suse.com>
Date:   Fri Sep 9 12:34:54 2011 +0530

    n#705985: Importing Flip properties of custom shapes.

diff --git a/oox/source/drawingml/customshapeproperties.cxx b/oox/source/drawingml/customshapeproperties.cxx
index 23e2e19..a10aa0d 100644
--- a/oox/source/drawingml/customshapeproperties.cxx
+++ b/oox/source/drawingml/customshapeproperties.cxx
@@ -1911,7 +1911,15 @@ if ( maShapePresetType.equals( sWedgeRoundedRectCallout ) ) {
             //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( maShapePresetType );
+            }
         }
 
         if ( maAdjustmentGuideList.size() )


More information about the Libreoffice-commits mailing list