Sketch: replace PyObject_IsTrue with Base::asBoolean

This commit is contained in:
wmayer
2022-07-16 12:41:53 +02:00
parent a34911605c
commit 832bdaa7dd
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;
}