summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/transform2dcontext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/drawingml/transform2dcontext.cxx')
-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();
}
}