diff options
-rw-r--r-- | i18nlangtag/source/languagetag/languagetag.cxx | 6 |
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(); } |