diff options
author | Bruno Coudoin <bruno.coudoin@free.fr> | 2009-08-28 20:44:45 (GMT) |
---|---|---|
committer | Bruno Coudoin <bruno.coudoin@free.fr> | 2009-08-30 20:07:02 (GMT) |
commit | 8adcad2b0ad7de44ab92c5b0b2ddd4388402ddcb (patch) | |
tree | 3c9c1bc903a6f24de544e105bf59d959ebd98902 | |
parent | e5109df8aad999e3f52b7e5942e22a02cb5b34c6 (diff) |
Fixed a major bug resulting in garbled string in the advanced colorGCOMPRIS_8_3
activity. In this activity the color to search was garbled in American
english and in case there is no translations available for the running
locale.
-rw-r--r-- | src/boards/advanced_colors.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/boards/advanced_colors.c b/src/boards/advanced_colors.c index 2f94ef6..2762d97 100644 --- a/src/boards/advanced_colors.c +++ b/src/boards/advanced_colors.c @@ -481,7 +481,10 @@ static void add_xml_data(xmlDocPtr doc, xmlNodePtr xmlnode, GNode * child) if(text) { colors[i] = gettext((char *)text); - g_free(text); + + // We got a translation, free the original value + if ( text != colors[i] ) + g_free(text); } text = NULL; g_free(sColor); |