summaryrefslogtreecommitdiff
path: root/sc/source/core/data/documen9.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-09-12 11:07:34 +0300
committerDennis Francis <dennis.francis@collabora.co.uk>2017-11-21 13:49:50 +0530
commit40bb0f6dce48cd10356dff679d11298e717a0524 (patch)
tree44cb5bbb476cf0271b775c65909cc396ea832833 /sc/source/core/data/documen9.cxx
parent7bdb96ac4798e7be56ace1a5647a9785b7c37f31 (diff)
Guard mpShell from mutation
Change-Id: I7c12301f5a435dfca733b5f87b4b083f98a5292a
Diffstat (limited to 'sc/source/core/data/documen9.cxx')
-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 107ba9683220..8f41818035fc 100644
--- a/sc/source/core/data/documen9.cxx
+++ b/sc/source/core/data/documen9.cxx
@@ -109,7 +109,10 @@ void ScDocument::TransferDrawPage(ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDes
void ScDocument::InitDrawLayer( SfxObjectShell* pDocShell )
{
if (pDocShell && !mpShell)
+ {
+ ScMutationGuard aGuard(this, ScMutationGuardFlags::CORE);
mpShell = pDocShell;
+ }
if (!mpDrawLayer)
{