sc/source/ui/unoobj/docuno.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 98d8adc5b377039d5dee0d5046ece721010a960c
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Tue Nov 29 16:45:25 2022 +0100
Commit:     Eike Rathke <er...@redhat.com>
CommitDate: Wed Nov 30 01:27:37 2022 +0100

    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 <er...@redhat.com>
    Tested-by: Jenkins

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);
         }
 

Reply via email to