[Libreoffice-commits] core.git: svx/source

Stephan Bergmann sbergman at redhat.com
Wed Aug 12 05:16:30 PDT 2015


 svx/source/unodraw/unoshap4.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 68c6408b1725a8f506a8adb8c9af67a65e667f1c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Aug 12 14:15:29 2015 +0200

    tdf#93382: Make HACK more targeted to avoid collateral damage
    
    Change-Id: Ieecad5f244703c4d2436e22a3ab50f719843eef4

diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx
index a6ad98a..e087d61 100644
--- a/svx/source/unodraw/unoshap4.cxx
+++ b/svx/source/unodraw/unoshap4.cxx
@@ -428,13 +428,17 @@ bool SvxOle2Shape::createObject( const SvGlobalName &aClassName )
             {}
             pOle2Obj->SetLogicRect( aRect );
         }
-        else if (!aRect.IsEmpty()) //HACK: can aRect legally be empty?
+        else
         {
             awt::Size aSz;
             Size aSize = aRect.GetSize();
             aSz.Width = aSize.Width();
             aSz.Height = aSize.Height();
-            xObj->setVisualAreaSize(  pOle2Obj->GetAspect(), aSz );
+            if (aSz.Width != 0 || aSz.Height != 0)
+            {
+                //HACK: can aSz legally be empty?
+                xObj->setVisualAreaSize(  pOle2Obj->GetAspect(), aSz );
+            }
         }
 
         // connect the object after the visual area is set


More information about the Libreoffice-commits mailing list