[Libreoffice-commits] .: Branch 'libreoffice-3-5' - svx/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Aug 20 09:09:32 PDT 2012


 svx/source/svdraw/svdoashp.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 6cbb9602e15794b4d39d2482a40c22d3fd0328f9
Author: Muthu Subramanian <sumuthu at suse.com>
Date:   Tue Aug 14 16:12:53 2012 +0530

    fdo#47434: Zero rect. size causing wrong line positions.
    
    Thanks to Korrawit Pruegsanusak <detective.conan.1412 at gmail.com>
    for the indepth analysis and debugging.
    
    Signed-off-by: Petr Mladek <pmladek at suse.cz>

diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx
index 4c4ff86..cf7cec8 100644
--- a/svx/source/svdraw/svdoashp.cxx
+++ b/svx/source/svdraw/svdoashp.cxx
@@ -3031,6 +3031,10 @@ void SdrObjCustomShape::TRSetBaseGeometry(const basegfx::B2DHomMatrix& rMatrix,
     // build and set BaseRect (use scale)
     Point aPoint = Point();
     Size aSize(FRound(aScale.getX()), FRound(aScale.getY()));
+    // fdo#47434 We need a valid rectangle here
+    if( !aSize.Height() ) aSize.setHeight( 1 );
+    if( !aSize.Width() ) aSize.setWidth( 1 );
+
     Rectangle aBaseRect(aPoint, aSize);
     SetSnapRect(aBaseRect);
 


More information about the Libreoffice-commits mailing list