summaryrefslogtreecommitdiff
path: root/sw/source/ui/uiview/viewstat.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/uiview/viewstat.cxx')
-rw-r--r--sw/source/ui/uiview/viewstat.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/uiview/viewstat.cxx b/sw/source/ui/uiview/viewstat.cxx
index 21aa946afce2..91a3d4df07d3 100644
--- a/sw/source/ui/uiview/viewstat.cxx
+++ b/sw/source/ui/uiview/viewstat.cxx
@@ -299,7 +299,7 @@ void SwView::GetState(SfxItemSet &rSet)
// language is not supported (by default it is enabled)
uno::Reference< linguistic2::XThesaurus > xThes( ::GetThesaurus() );
if (!xThes.is() || nLang == LANGUAGE_NONE ||
- !xThes->hasLocale( LanguageTag( nLang ).getLocale() ))
+ !xThes->hasLocale( LanguageTag::convertToLocale( nLang ) ))
rSet.DisableItem(nWhich);
}
}