summaryrefslogtreecommitdiffstats
path: root/oox
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-03-28 12:02:39 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-03-28 12:21:28 +0200
commit1c2d7eba4af280630285e4c3822f7c8e2fb6d2f4 (patch)
treeffaa76d8f21dc5ac108adef75519dd5b43f0a117 /oox
parentRewrite of the format paintbrush (diff)
downloadcore-1c2d7eba4af280630285e4c3822f7c8e2fb6d2f4.tar.gz
core-1c2d7eba4af280630285e4c3822f7c8e2fb6d2f4.zip
n#751117 oox: make sure position is not lost during VML import of rotation
Diffstat (limited to 'oox')
-rw-r--r--oox/source/vml/vmlshape.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx
index 37e64313d7ba..9258c5a3a7a7 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;
}