summaryrefslogtreecommitdiff
path: root/i18nlangtag
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-19 00:08:08 +0200
committerEike Rathke <erack@redhat.com>2013-09-19 00:08:27 +0200
commit90698b5f6721472ebcdda2bb7c34e7364c3da9eb (patch)
tree7a62d2977a7202fa04ca818f75ea555830a6265a /i18nlangtag
parent9650bd951305211dcd84b04969654f672d8f63e4 (diff)
always sync after canonicalize
Change-Id: I96936330f787d9256383f73e17983e4950579160
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index 2bfe93698ff0..7f70186f439b 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -597,7 +597,10 @@ void LanguageTag::reset( const OUString & rBcp47LanguageTag, bool bCanonicalize
mbInitializedBcp47 = !mbSystemLocale;
if (bCanonicalize)
- getImpl()->canonicalize();
+ {
+ if (getImpl()->canonicalize())
+ syncFromImpl();
+ }
}