summaryrefslogtreecommitdiff
path: root/sw/source/ui/shells/textsh1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/shells/textsh1.cxx')
-rw-r--r--sw/source/ui/shells/textsh1.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/ui/shells/textsh1.cxx b/sw/source/ui/shells/textsh1.cxx
index 1a6f28d07daf..e2faab997e8b 100644
--- a/sw/source/ui/shells/textsh1.cxx
+++ b/sw/source/ui/shells/textsh1.cxx
@@ -1364,8 +1364,9 @@ void SwTextShell::GetState( SfxItemSet &rSet )
aText = rSh.HasSelection()? rSh.GetSelTxt() : rSh.GetCurWord();
LanguageType nLang = rSh.GetCurLang();
- lang::Locale aLocale = SvxCreateLocale( nLang );
- String aLangText( LanguageTag( nLang ).getBcp47() );
+ LanguageTag aLanguageTag( nLang);
+ lang::Locale aLocale( aLanguageTag.getLocale());
+ String aLangText( aLanguageTag.getBcp47() );
// set word and locale to look up as status value
String aStatusVal( aText );