summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index a366c7289820..2bfe93698ff0 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -938,6 +938,8 @@ void LanguageTag::convertBcp47ToLang()
{
LanguageTagImpl* pImpl = getImpl();
pImpl->convertBcp47ToLang();
+ maLocale = pImpl->maLocale;
+ mbInitializedLocale = pImpl->mbInitializedLocale;
mnLangID = pImpl->mnLangID;
mbInitializedLangID = pImpl->mbInitializedLangID;
}
@@ -978,6 +980,8 @@ void LanguageTag::convertLangToBcp47()
{
LanguageTagImpl* pImpl = getImpl();
pImpl->convertLangToBcp47();
+ maLocale = pImpl->maLocale;
+ mbInitializedLocale = pImpl->mbInitializedLocale;
maBcp47 = pImpl->maBcp47;
mbInitializedBcp47 = pImpl->mbInitializedBcp47;
}