summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-09-12 12:49:53 +0300
committerDennis Francis <dennis.francis@collabora.co.uk>2017-11-21 13:49:50 +0530
commitf1b62a8eb2d498307cc1724582a585ea95befc9e (patch)
tree8f56208daaa70ddb3ebc95ebd5e0bb9006c98414
parent40bb0f6dce48cd10356dff679d11298e717a0524 (diff)
Guard mpDrawLayer from mutation
Change-Id: I8b9a4680691d47732be2dd159ffc5d56d12a7a95
-rw-r--r--sc/source/core/data/documen9.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx
index 8f41818035fc..4d037614c8de 100644
--- a/sc/source/core/data/documen9.cxx
+++ b/sc/source/core/data/documen9.cxx
@@ -116,6 +116,7 @@ void ScDocument::InitDrawLayer( SfxObjectShell* pDocShell )
if (!mpDrawLayer)
{
+ ScMutationGuard aGuard(this, ScMutationGuardFlags::CORE);
OUString aName;
if ( mpShell && !mpShell->IsLoading() ) // don't call GetTitle while loading
aName = mpShell->GetTitle();
@@ -238,6 +239,8 @@ IMPL_LINK( ScDocument, GetUserDefinedColor, sal_uInt16, nColorIndex, Color* )
void ScDocument::DeleteDrawLayer()
{
+ ScMutationGuard aGuard(this, ScMutationGuardFlags::CORE);
+
// remove DrawingLayer's SfxItemPool from Calc's SfxItemPool where
// it is registered as secondary pool
if (mxPoolHelper.is() && !IsClipOrUndo()) //Using IsClipOrUndo as a proxy for SharePooledResources called