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 ) ...@@ -690,11 +690,7 @@ void ScDocument::ApplyAsianEditSettings( ScEditEngineDefaulter& rEngine )
void ScDocument::RebuildFormulaGroups() void ScDocument::RebuildFormulaGroups()
{ {
bool bEnableFormulaGroups; if (!ScInterpreter::GetGlobalConfig().mbOpenCLEnabled)
bEnableFormulaGroups = ScInterpreter::GetGlobalConfig().mbOpenCLEnabled;
if ( !bEnableFormulaGroups )
return; return;
SCTAB nTab; SCTAB nTab;
......
...@@ -3084,6 +3084,9 @@ public: ...@@ -3084,6 +3084,9 @@ public:
bool ScFormulaCell::InterpretFormulaGroup() bool ScFormulaCell::InterpretFormulaGroup()
{ {
if (!ScInterpreter::GetGlobalConfig().mbOpenCLEnabled)
return false;
// Re-build formulae groups if necessary - ideally this is done at // Re-build formulae groups if necessary - ideally this is done at
// import / insert / delete etc. and is integral to the data structures // import / insert / delete etc. and is integral to the data structures
pDocument->RebuildFormulaGroups(); 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