sc/source/core/tool/addincol.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit 1700d33d8b4ce721a774b8fa894c42375acd6db9 Author: Eike Rathke <er...@redhat.com> AuthorDate: Thu Aug 29 17:40:02 2024 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Fri Aug 30 11:35:32 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 (cherry picked from commit 6159c597b5e20db2cee919b116bb7a0b663ca9d7) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172580 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx index f66ff2da554c..e84a02802c01 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;