summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-05-04 10:07:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-05-04 13:56:55 +0200
commitd548d283f0ce369fa03d6f2c1ddf0f8e988bc65a (patch)
tree04a3693078bf5e87adff9e187f327e0a4bfb3b35 /svx
parent3b7db802731826b6cc3b55100470b0c61c1f2dfa (diff)
tdf#105404 lock model while updating
to reduce broadcasting while we are doing a "break" operation on a vector shape, shaves 50% off the time here Change-Id: Ied77c81c892727b69481c23ea7c5eff0e7eeb830 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151353 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdedtv2.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx
index e9cb2be04633..138d74058268 100644
--- a/svx/source/svdraw/svdedtv2.cxx
+++ b/svx/source/svdraw/svdedtv2.cxx
@@ -1733,6 +1733,8 @@ void SdrEditView::DismantleMarkedObjects(bool bMakeLines)
}
SdrObjList* pOL0=nullptr;
+ const bool bWasLocked = GetModel().isLocked();
+ GetModel().setLock(true);
for (size_t nm=GetMarkedObjectCount(); nm>0;) {
--nm;
SdrMark* pM=GetSdrMarkByIndex(nm);
@@ -1759,6 +1761,7 @@ void SdrEditView::DismantleMarkedObjects(bool bMakeLines)
pOL->RemoveObject(nPos0);
}
}
+ GetModel().setLock(bWasLocked);
if( bUndo )
{