Sketch: replace PyObject_IsTrue with Base::asBoolean

This commit is contained in:
wmayer
2022-07-16 12:41:53 +02:00
parent 231de30c2f
commit b48f7229a3
6 changed files with 25 additions and 25 deletions

View File

@@ -128,7 +128,7 @@ PyObject* ExternalGeometryExtensionPy::setFlag(PyObject *args)
if(getExternalGeometryExtensionPtr()->getFlagsFromName(flag, flagtype)) {
this->getExternalGeometryExtensionPtr()->setFlag(flagtype,PyObject_IsTrue(bflag) ? true : false);
this->getExternalGeometryExtensionPtr()->setFlag(flagtype, Base::asBoolean(bflag));
Py_Return;
}