summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-09-20 22:37:59 +0200
committerEike Rathke <erack@redhat.com>2016-09-20 22:38:43 +0200
commita8a8ff59c5749bbe1f2f58ea8fd42d66e6ae2a81 (patch)
tree652fcc1a8a7065255edb350e225bb1604e6fd6b4
parent73c7e0921d752df53004ed55735f3e8888cc592f (diff)
sc-perf: tdf#79023 do not call SvNumberFormatter also for numbers in OOXML
Change-Id: Ib565687bff2205da0213f6d523dd2bc42c96ad47
-rw-r--r--sc/source/core/tool/compiler.cxx3
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.