From c3ae01b0502b53578b11d954f999957cb755eff3 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 28 Oct 2015 02:01:08 +0100 Subject: [PATCH] Put back possibility to set boolean parameter with integer value for backwards compatibility with older swig versions. --- pyext/GApplication.i | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/pyext/GApplication.i b/pyext/GApplication.i index 2693dca..30be397 100644 --- a/pyext/GApplication.i +++ b/pyext/GApplication.i @@ -109,6 +109,9 @@ public: else if (par.type() == "i") { par.integer(val); } + else if (par.type() == "b") { + par.boolean(val); + } else { std::string msg = "Attempt to set \""+par.type()+ "\" parameter \""+name+"\" with integer " -- libgit2 0.21.4