From 9e4a067a9713dd4d03495d6a0e18d5f95e973692 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 29 May 2012 21:18:20 -0400 Subject: Use the new option when interpreting INDIRECT function. Change-Id: Ic9ba214e5bbee64287934437fcdb63117a1146f6 --- sc/source/ui/docshell/docsh6.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sc/source/ui') 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() -- cgit