svx/source/svdraw/svdpage.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit aa33a6381747acb55455838df17dbbe160aaeb69
Author:     Noel Grandin <[email protected]>
AuthorDate: Tue Aug 2 08:32:35 2022 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Wed Aug 3 09:12:34 2022 +0200

    tdf#150034 very slow opening pathological chart
    
    revert part of
        commit 10c934147d469965dba6abc78efd02759a010b8e
        Author: Noel Grandin <[email protected]>
        Date:   Tue Apr 23 09:26:46 2019 +0200
        tdf#113266 slow opening XLS with 45 MB drawing
    in this situation, avoiding setting all the rects dirty speeds up the
    load from 70s to 1s.
    
    Change-Id: Ia35119ff20ef5bded9a34f12cce453434dea4383
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137688
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>
    (cherry picked from commit 613f6e75fbfcc024fc9c3732261cbf2cda6f4ad8)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137716
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index b6ef5a450e5c..8af8b0fc35da 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -300,7 +300,8 @@ void SdrObjList::NbcInsertObject(SdrObject* pObj, size_t 
nPos)
     impChildInserted(*pObj);
 
     if (!mbRectsDirty) {
-        mbRectsDirty = true;
+        maSdrObjListOutRect.Union(pObj->GetCurrentBoundRect());
+        maSdrObjListSnapRect.Union(pObj->GetSnapRect());
     }
     pObj->InsertedStateChange(); // calls the UserCall (among others)
 }

Reply via email to