sc-perf: tdf#79023 do not call SvNumberFormatter also for numbers in OOXML

Change-Id: Ib565687bff2205da0213f6d523dd2bc42c96ad47
This commit is contained in:
Eike Rathke 2016-09-20 22:37:59 +02:00
parent 73c7e0921d
commit a8a8ff59c5

View file

@ -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.