summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-04-10 13:47:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-10 16:53:26 +0200
commit566e43d2129dd6c70bb718296ce66353e7ff824b (patch)
tree4308d55e35778dd3209a9d5595e80edd2a2c3586 /svx
parentde3b720f4066c9fcf1258bf6592263a7e476cc46 (diff)
tdf#130326 speed up XLSX load
cuts time from 35s to 25s for me. If the model is locked, we should not be broadcasting events. Change-Id: I4d8ca10c9d2a9862b30f88cc00e65aab1e2fad7d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113909 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdpage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index 02a891f290ff..adcbb8f713f6 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -365,7 +365,7 @@ void SdrObjList::InsertObject(SdrObject* pObj, size_t nPos)
// TODO: We need a different broadcast here!
// Repaint from object number ... (heads-up: GroupObj)
- if(pObj->getSdrPageFromSdrObject())
+ if(pObj->getSdrPageFromSdrObject() && !pObj->getSdrModelFromSdrObject().isLocked())
{
SdrHint aHint(SdrHintKind::ObjectInserted, *pObj);
pObj->getSdrModelFromSdrObject().Broadcast(aHint);