summaryrefslogtreecommitdiff
path: root/sw/source/ui/uiview
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/uiview')
-rw-r--r--sw/source/ui/uiview/viewling.cxx2
-rw-r--r--sw/source/ui/uiview/viewstat.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/uiview/viewling.cxx b/sw/source/ui/uiview/viewling.cxx
index 98d0dfc306f9..fc497fd71c49 100644
--- a/sw/source/ui/uiview/viewling.cxx
+++ b/sw/source/ui/uiview/viewling.cxx
@@ -579,7 +579,7 @@ void SwView::StartThesaurus()
Reference< XThesaurus > xThes( ::GetThesaurus() );
AbstractThesaurusDialog *pDlg = NULL;
- if ( !xThes.is() || !xThes->hasLocale( LanguageTag( eLang ).getLocale() ) )
+ if ( !xThes.is() || !xThes->hasLocale( LanguageTag::convertToLocale( eLang ) ) )
SpellError( eLang );
else
{
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);
}
}