[Libreoffice-commits] core.git: Branch 'feature/perfwork3' - svx/source

Kohei Yoshida kohei.yoshida at collabora.com
Wed Oct 15 09:30:13 PDT 2014


 svx/source/svdraw/svdoashp.cxx |    3 ---
 svx/source/svdraw/svdotext.cxx |    1 -
 2 files changed, 4 deletions(-)

New commits:
commit 6b4691403493bc283e4c742366f48d6a1cbd7145
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date:   Wed Oct 15 10:04:51 2014 -0400

    SetObjectItemSet() eventually calls NbcAdjustTextFrameWidthAndHeight().
    
    No need to call this (rather expensive) method twice.
    
    Change-Id: I4c0a54acd1da0b8504ae7eb96beda4a8531943c7

diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx
index 858772c..7f17a11 100644
--- a/svx/source/svdraw/svdoashp.cxx
+++ b/svx/source/svdraw/svdoashp.cxx
@@ -1480,10 +1480,7 @@ void SdrObjCustomShape::AdaptTextMinSize()
         }
 
         if(bChanged)
-        {
             SetObjectItemSet(aSet);
-            NbcAdjustTextFrameWidthAndHeight();
-        }
     }
 }
 
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx
index a96efe9..ca79e62 100644
--- a/svx/source/svdraw/svdotext.cxx
+++ b/svx/source/svdraw/svdotext.cxx
@@ -600,7 +600,6 @@ void SdrTextObj::AdaptTextMinSize()
     }
 
     SetObjectItemSet(aSet);
-    NbcAdjustTextFrameWidthAndHeight();
 }
 
 void SdrTextObj::ImpSetContourPolygon( SdrOutliner& rOutliner, Rectangle& rAnchorRect, bool bLineWidth ) const


More information about the Libreoffice-commits mailing list