sc/source/core/tool/addincol.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 6159c597b5e20db2cee919b116bb7a0b663ca9d7 Author: Eike Rathke <er...@redhat.com> AuthorDate: Thu Aug 29 17:40:02 2024 +0200 Commit: Eike Rathke <er...@redhat.com> CommitDate: Thu Aug 29 18:54:02 2024 +0200 Related: tdf#161599 Do not skip first of fallbacks of CompatibilityName locale It's actually needed if the locale to check is already a fallback. Change-Id: If6ab24209f88a1cb372e04bd29e0eb2ad9fdb243 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172601 Reviewed-by: Eike Rathke <er...@redhat.com> Tested-by: Jenkins diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx index e5a7e239ee9e..131b493be0e3 100644 --- a/sc/source/core/tool/addincol.cxx +++ b/sc/source/core/tool/addincol.cxx @@ -185,8 +185,7 @@ bool ScUnoAddInFuncData::GetExcelName( const LanguageTag& rDestLang, OUString& r { for (const auto& rCompName : rCompNames) { - // We checked already the full tag, start with second. - ::std::vector< OUString > aFallbackLocales( LanguageTag( rCompName.maLocale).getFallbackStrings( false)); + ::std::vector< OUString > aFallbackLocales( LanguageTag( rCompName.maLocale).getFallbackStrings(true)); if (std::find(aFallbackLocales.begin(), aFallbackLocales.end(), rSearch) != aFallbackLocales.end()) { rRetExcelName = rCompName.maName;