summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@collabora.com>2014-03-31 15:00:13 +0530
committerMuthu Subramanian <sumuthu@collabora.com>2014-03-31 15:00:13 +0530
commit36611abf83c6ccfab9f5e18dd90a6664f514b7ba (patch)
treeace0c7f7bd900982681f520b4c641260a4d9b3f6
parentdf861737beaa883ccd2b11bfa896cd546dd51b6f (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.cxx3
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();
}
}