[Libreoffice-commits] core.git: svx/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Sat Apr 10 14:54:04 UTC 2021


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

New commits:
commit 566e43d2129dd6c70bb718296ce66353e7ff824b
Author:     Noel Grandin <noel at peralex.com>
AuthorDate: Sat Apr 10 13:47:00 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sat Apr 10 16:53:26 2021 +0200

    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 at collabora.co.uk>

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);


More information about the Libreoffice-commits mailing list