summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-08-06 20:29:02 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-08-31 14:50:39 +0000
commitc9833638d92157b40d12e02eb934aafe5f4ad589 (patch)
treed3311732a91780c0aced576ceadab9b61a67a1c8 /src
parentParameter float: add note regarding rounding issue (diff)
downloadinkscape-c9833638d92157b40d12e02eb934aafe5f4ad589.tar.gz
inkscape-c9833638d92157b40d12e02eb934aafe5f4ad589.zip
Accept parameter type "bool"
Seems more consistent with "int" and "float" types and should likely be preferred over the old "boolean"
Diffstat (limited to 'src')
-rw-r--r--src/extension/prefdialog/parameter.cpp2
1 files changed, 1 insertions, 1 deletions
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);