svx/source/svdraw/charthelper.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 9cd2b1015ce94c7ca649c98f0bb970aa6396ec5a
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Dec 7 12:58:25 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Dec 7 14:26:39 2021 +0100

    lock model while building chart
    
    reduces the amount of broadcasting we do
    
    Change-Id: I29ebabfcd255a96381d75b2b013f4a1abfb8ee08
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126472
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/svx/source/svdraw/charthelper.cxx 
b/svx/source/svdraw/charthelper.cxx
index 737bf792e320..c1eaebccb09f 100644
--- a/svx/source/svdraw/charthelper.cxx
+++ b/svx/source/svdraw/charthelper.cxx
@@ -63,7 +63,10 @@ drawinglayer::primitive2d::Primitive2DContainer 
ChartHelper::tryToGetChartConten
     if (!rXModel.is())
         return aRetval;
 
+    // don't broadcast until we're finished building, more efficient
+    rXModel->lockControllers();
     updateChart(rXModel);
+    rXModel->unlockControllers();
 
     try
     {

Reply via email to