svx/source/svdraw/svdpage.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 613f6e75fbfcc024fc9c3732261cbf2cda6f4ad8 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Tue Aug 2 08:32:35 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue Aug 2 13:50:19 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> diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx index 61a58b3dbc35..95c9608937ca 100644 --- a/svx/source/svdraw/svdpage.cxx +++ b/svx/source/svdraw/svdpage.cxx @@ -293,7 +293,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) }