summaryrefslogtreecommitdiff
path: root/sw/source/ui/uno/unotxdoc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/uno/unotxdoc.cxx')
-rw-r--r--sw/source/ui/uno/unotxdoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx
index beefaf1e196d..ae06e5756771 100644
--- a/sw/source/ui/uno/unotxdoc.cxx
+++ b/sw/source/ui/uno/unotxdoc.cxx
@@ -3329,7 +3329,7 @@ uno::Sequence< lang::Locale > SAL_CALL SwXTextDocument::getDocumentLanguages(
break;
if (LANGUAGE_NONE != *it)
{
- pLanguage[nCount] = LanguageTag( *it ).getLocale();
+ pLanguage[nCount] = LanguageTag::convertToLocale( *it );
pLanguage[nCount].Language = aLangTab.GetString( *it );
nCount += 1;
}