diff options
author | Eike Rathke <erack@redhat.com> | 2022-11-29 16:45:25 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2022-11-30 01:27:37 +0100 |
commit | 98d8adc5b377039d5dee0d5046ece721010a960c (patch) | |
tree | 250ea338eaa7080b3eed337bb3c057c55f762467 /sc | |
parent | bfe33d42a2381bce194cc6fe15b830902f7c8443 (diff) |
Unnecessary to convert to locale, tdf#67866 follow-up
ScGlobal::GetEditDefaultLanguage() obtains the application
language tag to return the LanguageType, that was converted
back to obtain the locale.. just obtain the locale from the
application language tag.
Change-Id: I0c2028ad6162780b657db39b78f6e9006aaa2660
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143469
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index cf3ad3e3f755..d3cbd98af592 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -2227,7 +2227,7 @@ void SAL_CALL ScModelObj::render( sal_Int32 nSelRenderer, const uno::Any& aSelec { if (pPDFData) { - css::lang::Locale const docLocale(LanguageTag(ScGlobal::GetEditDefaultLanguage()).getLocale()); + css::lang::Locale const docLocale(Application::GetSettings().GetLanguageTag().getLocale()); pPDFData->SetDocumentLocale(docLocale); } |