diff options
author | Eike Rathke <erack@redhat.com> | 2021-10-18 23:22:33 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2021-10-19 00:20:36 +0200 |
commit | e3c3c3b84ef6b91f89a5e388e6538f18a2e8b13e (patch) | |
tree | bfacaa3679c5a5377354c0469c8a6dece907db91 /sc | |
parent | 20081a8ea052b2f31915bd127c3b282cf5025d59 (diff) |
Use MsLangId::getConfiguredSystemLanguage()
Change-Id: I298f762ac7f3298aa9cb9621ad1f8cae50527b24
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123790
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/sidebar/CellLineStyleValueSet.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index e7030950030f..add2fea120d2 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -9017,7 +9017,7 @@ static bool IsDBCS(sal_Unicode currentChar) { // for the locale of ja-JP, character U+0x005c and U+0x20ac should be ScriptType::Asian if( (currentChar == 0x005c || currentChar == 0x20ac) && - (MsLangId::getSystemLanguage() == LANGUAGE_JAPANESE) ) + (MsLangId::getConfiguredSystemLanguage() == LANGUAGE_JAPANESE) ) return true; sal_uInt16 i; bool bRet = false; diff --git a/sc/source/ui/sidebar/CellLineStyleValueSet.cxx b/sc/source/ui/sidebar/CellLineStyleValueSet.cxx index a47c1d1f0f1d..c993f59a2a41 100644 --- a/sc/source/ui/sidebar/CellLineStyleValueSet.cxx +++ b/sc/source/ui/sidebar/CellLineStyleValueSet.cxx @@ -83,7 +83,7 @@ void CellLineStyleValueSet::UserDraw( const UserDrawEvent& rUDEvt ) Color aOldColor = pDev->GetLineColor(); Color aOldFillColor = pDev->GetFillColor(); - vcl::Font aFont(OutputDevice::GetDefaultFont(DefaultFontType::UI_SANS, MsLangId::getSystemLanguage(), GetDefaultFontFlags::OnlyOne)); + vcl::Font aFont(OutputDevice::GetDefaultFont(DefaultFontType::UI_SANS, MsLangId::getConfiguredSystemLanguage(), GetDefaultFontFlags::OnlyOne)); Size aSize = aFont.GetFontSize(); aSize.setHeight( nRectHeight*3/5 ); aFont.SetFontSize( aSize ); |