summaryrefslogtreecommitdiffstats
path: root/src/extension/paramenum.cpp
diff options
context:
space:
mode:
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) );
}
}