[Libreoffice-commits] .: oox/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Nov 30 05:20:46 PST 2012
oox/source/export/drawingml.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 28315fb6a40dd0f43990272b11037f60d26afda7
Author: Radek Doulik <rodo at novell.com>
Date: Fri Nov 30 14:18:32 2012 +0100
do not write rotation when it is equal to multiple of 360 degrees
Change-Id: I0338964e8f8ded9ce0c488a437d3bf023d08047a
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index 3f141e5..ae9f1b3 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 );
More information about the Libreoffice-commits
mailing list