From b8a83c5c63873faf1a63205b8aad634f351d1a9f Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Thu, 1 Sep 2022 13:40:58 +0200 Subject: Related: tdf#142293 Use FormulaCompiler::GetFinalOpCodeMap() in ScCompiler Change-Id: I65bf11fca11acfbc372c99a5210e0f79b61f2be4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139171 Reviewed-by: Eike Rathke Tested-by: Jenkins --- sc/source/core/tool/compiler.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc/source') diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index ecd1dfed63f6..d19f1b665201 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -261,17 +261,17 @@ void ScCompiler::SetGrammar( const FormulaGrammar::Grammar eGrammar ) if( eGrammar == FormulaGrammar::GRAM_EXTERNAL ) { meGrammar = eGrammar; - mxSymbols = GetOpCodeMap( css::sheet::FormulaLanguage::NATIVE); + mxSymbols = GetFinalOpCodeMap( css::sheet::FormulaLanguage::NATIVE); } else { FormulaGrammar::Grammar eMyGrammar = eGrammar; const sal_Int32 nFormulaLanguage = FormulaGrammar::extractFormulaLanguage( eMyGrammar); - OpCodeMapPtr xMap = GetOpCodeMap( nFormulaLanguage); + OpCodeMapPtr xMap = GetFinalOpCodeMap( nFormulaLanguage); OSL_ENSURE( xMap, "ScCompiler::SetGrammar: unknown formula language"); if (!xMap) { - xMap = GetOpCodeMap( css::sheet::FormulaLanguage::NATIVE); + xMap = GetFinalOpCodeMap( css::sheet::FormulaLanguage::NATIVE); eMyGrammar = xMap->getGrammar(); } -- cgit