diff options
-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 e620032bf8ee..2a49e899b63b 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -2894,7 +2894,8 @@ static bool lcl_ParenthesisFollows( const sal_Unicode* p ) bool ScCompiler::IsValue( const OUString& rSym ) { - if (FormulaGrammar::isODFF( GetGrammar())) + const sal_Int32 nFormulaLanguage = FormulaGrammar::extractFormulaLanguage( GetGrammar()); + if (nFormulaLanguage == css::sheet::FormulaLanguage::ODFF || nFormulaLanguage == css::sheet::FormulaLanguage::OOXML) { // Speedup things for ODFF, only well-formed numbers, not locale // dependent nor user input. |