diff options
author | Muthu Subramanian <sumuthu@collabora.com> | 2014-03-31 15:00:13 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-04-03 05:31:13 -0700 |
commit | d3ce557d214ec8452c905a602ed85adb54e5f4e5 (patch) | |
tree | caa7d0dbc20071ddf3d521a9664b25a096082990 | |
parent | 8f0e912cd1b93aff6eb940729971af94fa35e742 (diff) |
n#862510: Fix text rotation.
Fix breaks document in n#783433 - the one there is
damaged - resaving it using mso 2010 should fix the problem there.
Ported from: e3e12b1d1e36e1a0d4fc4c6423b584d677693897
Change-Id: I56fbefa9de6b0714592cc64dffc011b27d1907f4
-rw-r--r-- | oox/source/drawingml/transform2dcontext.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/drawingml/transform2dcontext.cxx b/oox/source/drawingml/transform2dcontext.cxx index d35c5d3c921a..497635135d46 100644 --- a/oox/source/drawingml/transform2dcontext.cxx +++ b/oox/source/drawingml/transform2dcontext.cxx @@ -50,7 +50,8 @@ Transform2DContext::Transform2DContext( ContextHandler& rParent, const Reference } else { - mrShape.getTextBody()->getTextProperties().moRotation = aAttributeList.getInteger( XML_rot ); + if( aAttributeList.hasAttribute( XML_rot ) ) + mrShape.getTextBody()->getTextProperties().moRotation = -aAttributeList.getInteger( XML_rot ).get(); } } |