Kaydet (Commit) e5bbf110 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Ensure that the group calculation path won't get called when it's disabled.

Change-Id: I0ea45616558bebf99c63862a0458776c67789bbc
üst 94040c20
......@@ -690,11 +690,7 @@ void ScDocument::ApplyAsianEditSettings( ScEditEngineDefaulter& rEngine )
void ScDocument::RebuildFormulaGroups()
{
bool bEnableFormulaGroups;
bEnableFormulaGroups = ScInterpreter::GetGlobalConfig().mbOpenCLEnabled;
if ( !bEnableFormulaGroups )
if (!ScInterpreter::GetGlobalConfig().mbOpenCLEnabled)
return;
SCTAB nTab;
......
......@@ -3084,6 +3084,9 @@ public:
bool ScFormulaCell::InterpretFormulaGroup()
{
if (!ScInterpreter::GetGlobalConfig().mbOpenCLEnabled)
return false;
// Re-build formulae groups if necessary - ideally this is done at
// import / insert / delete etc. and is integral to the data structures
pDocument->RebuildFormulaGroups();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment