From 3e8df9eb9535349b2bbb1394794cffcae4b067ac Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 13 Nov 2013 15:37:34 +0200 Subject: Avoid crash in unit test Change-Id: Ic452c1a2a8a7099a22584130e6a161c25bccabae --- sc/source/core/data/formulacell.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit