summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-11-13 15:37:34 +0200
committerMichael Meeks <michael.meeks@collabora.com>2013-11-20 18:23:05 +0000
commit3e8df9eb9535349b2bbb1394794cffcae4b067ac (patch)
tree46856acdcbaf8ff40639df438798be70cdac3966 /sc/source/core/data
parent856e0ab368b4079df11cec23d669c050b45fc36e (diff)
Avoid crash in unit test
Change-Id: Ic452c1a2a8a7099a22584130e6a161c25bccabae
Diffstat (limited to 'sc/source/core/data')
-rw-r--r--sc/source/core/data/formulacell.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index c17e4f3638dd..a864b1d7be9d 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -3329,7 +3329,8 @@ ScFormulaCellGroupRef ScFormulaCell::CreateCellGroup( SCROW nLen, bool bInvarian
mxGroup->mbInvariant = bInvariant;
mxGroup->mnLength = nLen;
mxGroup->mpCode = pCode; // Move this to the shared location.
- mxGroup->scheduleCompilation();
+ if (mxGroup->mxCLKernelThread.is())
+ mxGroup->scheduleCompilation();
return mxGroup;
}