oox/source/export/drawingml.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 7279610bbd403fbbb12a894d334a6ec4ba259600
Author: Radek Doulik <r...@novell.com>
Date:   Thu Jun 21 12:02:57 2012 +0200

    make sure we don't export shapes with negative size (fixes n#760997)
    
    Change-Id: Id77cbfaa287d15c4af9a91976f3b091e68229223

diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index f2c28e9..b6e67c8 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -635,6 +635,11 @@ void DrawingML::WriteShapeTransformation( Reference< 
XShape > rXShape, sal_Int32
     awt::Point aPos = rXShape->getPosition();
     awt::Size aSize = rXShape->getSize();
 
+    if ( aSize.Width < 0 )
+        aSize.Width = 1000;
+    if ( aSize.Height < 0 )
+        aSize.Height = 1000;
+
     WriteTransformation( Rectangle( Point( aPos.X, aPos.Y ), Size( 
aSize.Width, aSize.Height ) ), nXmlNamespace, bFlipH, bFlipV, nRotation );
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to