From 80b40def43613f64e765f1e282fa939bd94f92af Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Sat, 7 Sep 2019 22:24:44 +0200 Subject: Extensions: Handle optiongroup options without value We use the user visible GUI text as value in this case, which may or may not be translated. For backwards-compatibility with enum items use the untranslated value instead, if one of the deprecated tag-names is found. Fixes https://gitlab.com/inkscape/inkscape/issues/399 --- src/extension/prefdialog/parameter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/extension/prefdialog/parameter.cpp') diff --git a/src/extension/prefdialog/parameter.cpp b/src/extension/prefdialog/parameter.cpp index 65072f6a8..8cee78f43 100644 --- a/src/extension/prefdialog/parameter.cpp +++ b/src/extension/prefdialog/parameter.cpp @@ -224,7 +224,7 @@ unsigned int InxParameter::set_color(unsigned int in) InxParameter::InxParameter(Inkscape::XML::Node *in_repr, Inkscape::Extension::Extension *ext) : InxWidget(in_repr, ext) { - // name (mandatory for all paramters) + // name (mandatory for all parameters) const char *name = in_repr->attribute("name"); if (!name) { g_warning("Parameter without name in extension '%s'.", _extension->get_id()); -- cgit v1.2.3