summaryrefslogtreecommitdiff
path: root/svx/source/sidebar
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2021-10-18 23:22:33 +0200
committerEike Rathke <erack@redhat.com>2021-10-19 00:20:36 +0200
commite3c3c3b84ef6b91f89a5e388e6538f18a2e8b13e (patch)
treebfacaa3679c5a5377354c0469c8a6dece907db91 /svx/source/sidebar
parent20081a8ea052b2f31915bd127c3b282cf5025d59 (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 'svx/source/sidebar')
-rw-r--r--svx/source/sidebar/line/LineWidthValueSet.cxx2
-rw-r--r--svx/source/sidebar/tools/ValueSetWithTextControl.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sidebar/line/LineWidthValueSet.cxx b/svx/source/sidebar/line/LineWidthValueSet.cxx
index f5153a6b4800..be518fe4fa74 100644
--- a/svx/source/sidebar/line/LineWidthValueSet.cxx
+++ b/svx/source/sidebar/line/LineWidthValueSet.cxx
@@ -90,7 +90,7 @@ void LineWidthValueSet::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 );
diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
index 2c6de64b458f..1b6ca2d42979 100644
--- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
+++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
@@ -66,7 +66,7 @@ void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt )
const tools::Long nRectHeight = aRect.GetHeight();
- 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*4)/9 );