summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-10-02 21:18:09 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-03 11:03:35 +0200
commitaddd1c34502b959e329354d73808c222986d4b74 (patch)
treee9be2a6e926b1d0f2305fcd7fdd010dc2d75dbb8
parentd352dda3dbfc9e26b7f80746e1502f3cb4cd45c1 (diff)
Resolves: tdf#112827 gtk3 menubar not RTL under RTL locales
Change-Id: Icb2fa621e1f7da1e2d4bd221c8e1d8677cc956a2 Reviewed-on: https://gerrit.libreoffice.org/43057 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/source/app/settings.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index ebf5cb50104c..54d03cc0ae6a 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -2845,10 +2845,7 @@ namespace
if( nUIMirroring == 0 ) // no config found (eg, setup) or default (nil) was set: check language
{
- LanguageType aLang = LANGUAGE_DONTKNOW;
- ImplSVData* pSVData = ImplGetSVData();
- if ( pSVData->maAppData.mpSettings )
- aLang = pSVData->maAppData.mpSettings->GetUILanguageTag().getLanguageType();
+ LanguageType aLang = SvtSysLocaleOptions().GetRealUILanguageTag().getLanguageType();
if (bMath)
bRTL = MsLangId::isRightToLeftMath( aLang );
else