summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2012-11-30 14:18:32 +0100
committerRadek Doulik <rodo@novell.com>2012-11-30 14:20:01 +0100
commit28315fb6a40dd0f43990272b11037f60d26afda7 (patch)
treec2fc499dd48ba2d98aa7bbea6b04811d6d6ec108 /oox
parent04553f43e8bf12c8ecbbfb24f87199767c34c4f4 (diff)
do not write rotation when it is equal to multiple of 360 degrees
Change-Id: I0338964e8f8ded9ce0c488a437d3bf023d08047a
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/drawingml.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 3f141e584c32..ae9f1b302236 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -617,7 +617,7 @@ void DrawingML::WriteTransformation( const Rectangle& rRect,
mpFS->startElementNS( nXmlNamespace, XML_xfrm,
XML_flipH, bFlipH ? "1" : NULL,
XML_flipV, bFlipV ? "1" : NULL,
- XML_rot, nRotation ? I32S( nRotation ) : NULL,
+ XML_rot, (nRotation % 21600000) ? I32S( nRotation ) : NULL,
FSEND );
mpFS->singleElementNS( XML_a, XML_off, XML_x, IS( MM100toEMU( rRect.Left() ) ), XML_y, IS( MM100toEMU( rRect.Top() ) ), FSEND );