Commit c3ae01b0502b53578b11d954f999957cb755eff3

Authored by Jürgen Knödlseder
1 parent 2f8fd49c

Put back possibility to set boolean parameter with integer value for backwards c…

…ompatibility with older swig versions.
Showing 1 changed file with 3 additions and 0 deletions
pyext/GApplication.i
... ... @@ -109,6 +109,9 @@ public:
109 109 else if (par.type() == "i") {
110 110 par.integer(val);
111 111 }
  112 + else if (par.type() == "b") {
  113 + par.boolean(val);
  114 + }
112 115 else {
113 116 std::string msg = "Attempt to set \""+par.type()+
114 117 "\" parameter \""+name+"\" with integer "
... ...