diff options
author | Muthu Subramanian <sumuthu@collabora.com> | 2014-03-26 16:05:44 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-04-28 11:00:41 +0200 |
commit | 66c01c7ba3882555642ce0c353ea3abf15bda2b5 (patch) | |
tree | e8916ae79f36ec65c16579997a4aeebcef790925 /oox | |
parent | ff33ba96929cc4591f04e0963aa8c630d989e8bd (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.
Change-Id: Ib2ee7ab20489d716dc189ac6810d705763a16476
(cherry picked from commit e3e12b1d1e36e1a0d4fc4c6423b584d677693897)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'oox')
-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 8b9040cf564e..d3a7c4b60b05 100644 --- a/oox/source/drawingml/transform2dcontext.cxx +++ b/oox/source/drawingml/transform2dcontext.cxx @@ -46,7 +46,8 @@ Transform2DContext::Transform2DContext( ContextHandler2Helper& rParent, const At } else { - mrShape.getTextBody()->getTextProperties().moRotation = rAttribs.getInteger( XML_rot ); + if( rAttribs.hasAttribute( XML_rot ) ) + mrShape.getTextBody()->getTextProperties().moRotation = -rAttribs.getInteger( XML_rot ).get(); } } |