summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-10-12 00:48:05 +0200
committerEike Rathke <erack@redhat.com>2013-10-12 00:52:16 +0200
commit57f394688449e8feacb480440900cc50e1d58280 (patch)
treee18b938fc24dca53fe28a7b467a7091928fac4f3
parentf7ff594a9c879ea3ae437e0f7602ef26642e6fc7 (diff)
don't sync vars twice
Change-Id: I2052aa0ac750f6e1c004f886bf29f9b96cf11bb6
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index 40ade943937b..02225a4aaed0 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -1216,8 +1216,10 @@ void LanguageTag::syncFromImpl()
void LanguageTag::syncVarsFromImpl() const
{
- getImpl();
- syncVarsFromRawImpl();
+ if (!mpImpl)
+ getImpl(); // with side effect syncVarsFromRawImpl()
+ else
+ syncVarsFromRawImpl();
}