Commit 18639f5d authored by Thomas Wiesner's avatar Thomas Wiesner Committed by Thomas Holder

Fix boolean evaluation in shell mode parameter parsing

(cherry-picked from ac6fcd59)
parent ed05461b
Pipeline #183552316 passed with stages
in 107 minutes and 23 seconds
......@@ -1071,9 +1071,9 @@ ConcreteInkscapeApplication<T>::parse_actions(const Glib::ustring& input, action
Glib::VariantType type = action_ptr->get_parameter_type();
if (type.get_string() == "b") {
bool b = false;
if (value == "0" || value == "true" || value.empty()) {
if (value == "1" || value == "true" || value.empty()) {
b = true;
} else if (value =="1" || value == "false") {
} else if (value == "0" || value == "false") {
b = false;
} else {
std::cerr << "InkscapeApplication::parse_actions: Invalid boolean value: " << action << ":" << value << std::endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment