summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-09-11 15:30:10 +0300
committerDennis Francis <dennis.francis@collabora.co.uk>2017-11-21 13:49:50 +0530
commit7bdb96ac4798e7be56ace1a5647a9785b7c37f31 (patch)
tree2970590da20621f72509cf0dfac87f61b81af0b2 /sc/source/core
parentc55e746aa76cd4a2298efb56fbeffb567a98ed0b (diff)
Guard mpNoteEngine from mutation
Change-Id: I174bca167379b96083476a394d8ff5d7f00a8021
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/documen2.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index b18ab889a561..f0fc6f774930 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -527,6 +527,7 @@ ScNoteEditEngine& ScDocument::GetNoteEngine()
{
if ( !mpNoteEngine )
{
+ ScMutationGuard aGuard(this, ScMutationGuardFlags::CORE);
mpNoteEngine = new ScNoteEditEngine( GetEnginePool(), GetEditPool() );
mpNoteEngine->SetUpdateMode( false );
mpNoteEngine->EnableUndo( false );