- if (!PY_CHECK_TYPE(obbox, &BBoxClass)) {
- obbox = f_BBox(0, obbox, 0);
- if(!obbox)
- return NULL;
+ if(obbox) {
+ if (!PY_CHECK_TYPE(obbox, &BBoxClass)) {
+ obbox = f_BBox(0, obbox, 0);
+ if(!obbox)
+ return NULL;
+ }
+ bbox = bbox_getSRECT(obbox);