diff options
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index b2aa24f727b5..769790de7fdb 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -2933,21 +2933,13 @@ bool ScCompiler::IsOpCode( const OUString& rName, bool bInArray ) if (ScGlobal::GetAddInCollection()->GetFuncData( (*iExt).second)) aIntName = (*iExt).second; } - if (aIntName.isEmpty()) - { - // If that isn't found we might continue with rName lookup as a - // last resort by just falling through to FindFunction(), but - // it shouldn't happen if the map was setup correctly. Don't - // waste time and bail out. - return false; - } } - if (aIntName.isEmpty()) + else { // Old (deprecated) addins first for legacy. if (ScGlobal::GetLegacyFuncCollection()->findByName(cSymbol)) { - maRawToken.SetExternal( cSymbol ); + aIntName = cSymbol; } else // bLocalFirst=false for (English) upper full original name |