summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-02 08:32:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-03 09:12:34 +0200
commitaa33a6381747acb55455838df17dbbe160aaeb69 (patch)
treed41b998947392a8c0ef113c0c082714feb93a4bf /svx/source
parent3f97c911aa91c3bdfbae05fd5646b55987691e42 (diff)
tdf#150034 very slow opening pathological chart
revert part of commit 10c934147d469965dba6abc78efd02759a010b8e Author: Noel Grandin <noel.grandin@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.grandin@collabora.co.uk> (cherry picked from commit 613f6e75fbfcc024fc9c3732261cbf2cda6f4ad8) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137716 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/svdraw/svdpage.cxx3
1 files changed, 2 insertions, 1 deletions
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)
}