diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-11-13 14:02:49 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-11-13 14:02:49 +0000 |
| commit | c0037a60caf4de84b33ed9a3a79331c2b6d1e398 (patch) | |
| tree | 22f3a3c51bf1f529d9246b8c2ad90a6bc72893c7 /src/extension/paramenum.cpp | |
| parent | Update translations for Khmer (diff) | |
| download | inkscape-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.cpp | 8 |
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) ); } } |
