summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2012-05-29 21:18:20 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-05-30 11:37:19 -0400
commit9e4a067a9713dd4d03495d6a0e18d5f95e973692 (patch)
treeb7da1b6aac5ba9fa6c27e49473a8722311a0eb7e /sc/source/ui
parent00134920ec968ff492c88d8c5a6af22f1ebfa328 (diff)
Use the new option when interpreting INDIRECT function.
Change-Id: Ic9ba214e5bbee64287934437fcdb63117a1146f6
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/docshell/docsh6.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/ui/docshell/docsh6.cxx b/sc/source/ui/docshell/docsh6.cxx
index f6831dd1ab2d..5ca7d45ded11 100644
--- a/sc/source/ui/docshell/docsh6.cxx
+++ b/sc/source/ui/docshell/docsh6.cxx
@@ -50,6 +50,7 @@
#include "globstr.hrc"
#include "scmod.hxx"
#include "compiler.hxx"
+#include "interpre.hxx"
#include "formula/FormulaCompiler.hxx"
#include "comphelper/processfactory.hxx"
@@ -504,6 +505,11 @@ void ScDocShell::SetFormulaOptions(const ScFormulaOptions& rOpt )
// Update the separators.
ScCompiler::UpdateSeparatorsNative(
rOpt.GetFormulaSepArg(), rOpt.GetFormulaSepArrayCol(), rOpt.GetFormulaSepArrayRow());
+
+ // Global interpreter settings.
+ ScInterpreter::Config aConfig;
+ aConfig.meIndirectRefSyntax = rOpt.GetIndirectFuncSyntax();
+ ScInterpreter::SetGlobalConfig(aConfig);
}
void ScDocShell::CheckConfigOptions()