summaryrefslogtreecommitdiff
path: root/cui/source/options/optasian.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cui/source/options/optasian.cxx')
-rw-r--r--cui/source/options/optasian.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/options/optasian.cxx b/cui/source/options/optasian.cxx
index ed20545e12fe..9a0819d0893a 100644
--- a/cui/source/options/optasian.cxx
+++ b/cui/source/options/optasian.cxx
@@ -306,6 +306,7 @@ IMPL_LINK_NOARG(SvxAsianLayoutPage, LanguageHdl)
Locale aLocale;
LanguageType eSelectLanguage = aLanguageLB.GetSelectLanguage();
SvxLanguageToLocale(aLocale, eSelectLanguage );
+ LanguageTag aLanguageTag( aLocale);
OUString sStart, sEnd;
sal_Bool bAvail;
@@ -349,7 +350,7 @@ IMPL_LINK_NOARG(SvxAsianLayoutPage, LanguageHdl)
}
if(!bAvail)
{
- LocaleDataWrapper aWrap( aLocale );
+ LocaleDataWrapper aWrap( aLanguageTag );
ForbiddenCharacters aForbidden = aWrap.getForbiddenCharacters();
sStart = aForbidden.beginLine;
sEnd = aForbidden.endLine;