summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-12-07 12:58:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-07 14:26:39 +0100
commit9cd2b1015ce94c7ca649c98f0bb970aa6396ec5a (patch)
tree1a71bf707f2c9e2bb01948793408a0e0eac2a8eb /svx/source/svdraw
parent12ad13f35bffc2f22f6f7385b2e426c20ea91bd8 (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw')
-rw-r--r--svx/source/svdraw/charthelper.cxx3
1 files changed, 3 insertions, 0 deletions
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
{