From c9833638d92157b40d12e02eb934aafe5f4ad589 Mon Sep 17 00:00:00 2001 From: Patrick Storz Date: Tue, 6 Aug 2019 22:29:02 +0200 Subject: Accept parameter type "bool" Seems more consistent with "int" and "float" types and should likely be preferred over the old "boolean" --- 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 3f8f30c60..8618f434b 100644 --- a/src/extension/prefdialog/parameter.cpp +++ b/src/extension/prefdialog/parameter.cpp @@ -70,7 +70,7 @@ InxParameter *InxParameter::make(Inkscape::XML::Node *in_repr, Inkscape::Extensi if (!type) { // we can't create a parameter without type g_warning("Parameter without type in extension '%s'.", in_ext->get_id()); - } else if(!strcmp(type, "boolean")) { + } else if(!strcmp(type, "bool") || !strcmp(type, "boolean")) { // support "boolean" for backwards-compatibility param = new ParamBool(in_repr, in_ext); } else if (!strcmp(type, "int")) { param = new ParamInt(in_repr, in_ext); -- cgit v1.2.3