diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-12 16:10:42 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-08-31 14:50:39 +0000 |
| commit | bc25884ffbfc3eeba047fe49c0560083deee8ad8 (patch) | |
| tree | e0de220ba698f66868c924fe81a5e1066cbb6ad8 /src/extension/prefdialog/parameter-optiongroup.cpp | |
| parent | Add new widget "image" which allows to display an image file (diff) | |
| download | inkscape-bc25884ffbfc3eeba047fe49c0560083deee8ad8.tar.gz inkscape-bc25884ffbfc3eeba047fe49c0560083deee8ad8.zip | |
Make 'gui-text' required for visible parameters
We were actually crashing for visible parameters without 'gui-text'
otherwise.
Also make sure we actually *do* bail out if we have parameters
missing required fields and throw/catch an exception instead of
producing broken instances.
Diffstat (limited to 'src/extension/prefdialog/parameter-optiongroup.cpp')
| -rw-r--r-- | src/extension/prefdialog/parameter-optiongroup.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/extension/prefdialog/parameter-optiongroup.cpp b/src/extension/prefdialog/parameter-optiongroup.cpp index a1b3e0a52..e3f655dde 100644 --- a/src/extension/prefdialog/parameter-optiongroup.cpp +++ b/src/extension/prefdialog/parameter-optiongroup.cpp @@ -45,6 +45,7 @@ ParamOptionGroup::ParamOptionGroup(Inkscape::XML::Node *xml, Inkscape::Extension !strcmp(chname, INKSCAPE_EXTENSION_NS "item") || !strcmp(chname, INKSCAPE_EXTENSION_NS "_item")) ) { child_repr->setAttribute("name", "option"); // TODO: hack to allow options to be parameters + child_repr->setAttribute("gui-text", "option"); // TODO: hack to allow options to be parameters ParamOptionGroupOption *param = new ParamOptionGroupOption(child_repr, ext, this); choices.push_back(param); } else if (child_repr->type() == XML::ELEMENT_NODE) { |
