svx/source/svdraw/svdpage.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 7ef4ce12e52b699e31009e8bca8c57dd710de829 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Tue Aug 2 08:32:35 2022 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Tue Aug 9 18:18:07 2022 +0200 tdf#150034 very slow opening pathological chart revert part of commit 10c934147d469965dba6abc78efd02759a010b8e Author: Noel Grandin <noel.gran...@collabora.co.uk> 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 <noel.gran...@collabora.co.uk> (cherry picked from commit 613f6e75fbfcc024fc9c3732261cbf2cda6f4ad8) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137964 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx index b7aa8777e39c..ef1892990277 100644 --- a/svx/source/svdraw/svdpage.cxx +++ b/svx/source/svdraw/svdpage.cxx @@ -295,7 +295,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) }