summaryrefslogtreecommitdiffstats
path: root/src/extension/paramenum.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-11-13 14:02:49 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-11-13 14:02:49 +0000
commitc0037a60caf4de84b33ed9a3a79331c2b6d1e398 (patch)
tree22f3a3c51bf1f529d9246b8c2ad90a6bc72893c7 /src/extension/paramenum.cpp
parentUpdate translations for Khmer (diff)
downloadinkscape-c0037a60caf4de84b33ed9a3a79331c2b6d1e398.tar.gz
inkscape-c0037a60caf4de84b33ed9a3a79331c2b6d1e398.zip
make INX <option> translatable
(bzr r4076)
Diffstat (limited to 'src/extension/paramenum.cpp')
-rw-r--r--src/extension/paramenum.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/extension/paramenum.cpp b/src/extension/paramenum.cpp
index 8d779d1c2..1b1b83f6d 100644
--- a/src/extension/paramenum.cpp
+++ b/src/extension/paramenum.cpp
@@ -77,10 +77,16 @@ ParamComboBox::ParamComboBox (const gchar * name, const gchar * guitext, const g
const char * contents = sp_repr_children(child_repr)->content();
if (contents != NULL)
newguitext = new Glib::ustring( _(contents) );
+ else
+ continue;
+
const char * val = child_repr->attribute("value");
if (val != NULL)
newvalue = new Glib::ustring(val);
- if ( (newguitext) && (newvalue) ) {
+ else
+ newvalue = new Glib::ustring(contents);
+
+ if ( (newguitext) && (newvalue) ) { // logical error if this is not true here
choices = g_slist_append( choices, new enumentry(newvalue, newguitext) );
}
}