[Libreoffice-commits] core.git: i18nlangtag/source

Eike Rathke erack at redhat.com
Fri Oct 11 15:52:38 PDT 2013


 i18nlangtag/source/languagetag/languagetag.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 57f394688449e8feacb480440900cc50e1d58280
Author: Eike Rathke <erack at redhat.com>
Date:   Sat Oct 12 00:48:05 2013 +0200

    don't sync vars twice
    
    Change-Id: I2052aa0ac750f6e1c004f886bf29f9b96cf11bb6

diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index 40ade94..02225a4 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();
 }
 
 


More information about the Libreoffice-commits mailing list