From 28315fb6a40dd0f43990272b11037f60d26afda7 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Fri, 30 Nov 2012 14:18:32 +0100 Subject: do not write rotation when it is equal to multiple of 360 degrees Change-Id: I0338964e8f8ded9ce0c488a437d3bf023d08047a --- oox/source/export/drawingml.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oox') 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 ); -- cgit