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

Caolán McNamara caolanm at redhat.com
Tue Feb 13 17:30:53 UTC 2018


 svx/source/svdraw/svdobj.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit d512c60080782cc24e8d459c4e500ab0e48dde9b
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Feb 13 13:13:23 2018 +0000

    ofz#3577 speed up ppt fuzzing
    
    Change-Id: I4291fa609a063d9fd38a561e2dd96bf93ccfcd55
    Reviewed-on: https://gerrit.libreoffice.org/49651
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx
index 2f36f79853fa..2512c4571d0f 100644
--- a/svx/source/svdraw/svdobj.cxx
+++ b/svx/source/svdraw/svdobj.cxx
@@ -843,7 +843,7 @@ const tools::Rectangle& SdrObject::GetLastBoundRect() const
 void SdrObject::RecalcBoundRect()
 {
     // #i101680# suppress BoundRect calculations on import(s)
-    if(pModel && pModel->isLocked())
+    if ((pModel && pModel->isLocked()) || utl::ConfigManager::IsFuzzing())
         return;
 
     // central new method which will calculate the BoundRect using primitive geometry
@@ -873,7 +873,7 @@ void SdrObject::RecalcBoundRect()
 
 void SdrObject::BroadcastObjectChange() const
 {
-    if( pModel && pModel->isLocked() )
+    if ((pModel && pModel->isLocked()) || utl::ConfigManager::IsFuzzing())
         return;
 
     if (mbDelayBroadcastObjectChange)


More information about the Libreoffice-commits mailing list