[Libreoffice-commits] .: oox/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Wed Mar 28 03:20:59 PDT 2012


 oox/source/vml/vmlshape.cxx |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 1c2d7eba4af280630285e4c3822f7c8e2fb6d2f4
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Wed Mar 28 12:02:39 2012 +0200

    n#751117 oox: make sure position is not lost during VML import of rotation

diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx
index 37e6431..9258c5a 100644
--- a/oox/source/vml/vmlshape.cxx
+++ b/oox/source/vml/vmlshape.cxx
@@ -400,7 +400,13 @@ Reference< XShape > SimpleShape::implConvertAndInsert( const Reference< XShapes
     }
 
     if (xShape.is() && !maTypeModel.maRotation.isEmpty())
-        PropertySet(xShape).setAnyProperty(PROP_RotateAngle, makeAny(maTypeModel.maRotation.toInt32() * 100));
+    {
+        PropertySet aPropertySet(xShape);
+        aPropertySet.setAnyProperty(PROP_RotateAngle, makeAny(maTypeModel.maRotation.toInt32() * 100));
+        // If rotation is used, simple setPosition() is not enough.
+        aPropertySet.setAnyProperty(PROP_HoriOrientPosition, makeAny( aShapeRect.X ) );
+        aPropertySet.setAnyProperty(PROP_VertOrientPosition, makeAny( aShapeRect.Y ) );
+    }
 
     return xShape;
 }


More information about the Libreoffice-commits mailing list