diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-23 09:56:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-23 10:09:11 +0100 |
commit | 157bef79c1af5520d04a8389fa66d2e193998529 (patch) | |
tree | 808367786d1fa67ceb30a86a2aca914a5a437d00 /sc | |
parent | 931c84e697dc69745d1c07c40f810638f9f71eda (diff) |
ofz: avoid config
Change-Id: I1fa1c2cb9c755822c2a80453ac3f0424f2c91ffe
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 21142d23b610..acee51f38879 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -30,6 +30,7 @@ #include <sal/macros.h> #include <tools/solar.h> #include <unotools/charclass.hxx> +#include <unotools/configmgr.hxx> #include <com/sun/star/lang/Locale.hpp> #include <com/sun/star/sheet/FormulaOpCodeMapEntry.hpp> #include <com/sun/star/sheet/FormulaLanguage.hpp> @@ -4144,7 +4145,7 @@ bool ScCompiler::NextNewToken( bool bInArray ) if ( cSymbol[0] < 128 ) { bMayBeFuncName = rtl::isAsciiAlpha( cSymbol[0] ); - if (!bMayBeFuncName && (cSymbol[0] == '_' && cSymbol[1] == '_') ) + if (!bMayBeFuncName && (cSymbol[0] == '_' && cSymbol[1] == '_') && !utl::ConfigManager::IsAvoidConfig()) { SvtMiscOptions aOpt; bMayBeFuncName = aOpt.IsExperimentalMode(); |