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

@@ -122,7 +122,7 @@ PyObject* ExternalGeometryFacadePy::setFlag(PyObject *args)
if( pos != ExternalGeometryExtension::flag2str.end()) {
int index = std::distance( ExternalGeometryExtension::flag2str.begin(), pos );
this->getExternalGeometryFacadePtr()->setFlag(index,PyObject_IsTrue(bflag) ? true : false);
this->getExternalGeometryFacadePtr()->setFlag(index, Base::asBoolean(bflag));
Py_Return;
}