a FALSE return from gimp_drawable_mask_bounds doesn't mean failure.

2006-10-03  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-drawable.c: a FALSE return from
        gimp_drawable_mask_bounds doesn't mean failure. Restore old
        behavior. Fixes bug #357223.
This commit is contained in:
Manish Singh 2006-10-04 07:26:12 +00:00 committed by Manish Singh
parent 9acce12a98
commit f7c0e8ce13
2 changed files with 7 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2006-10-03 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-drawable.c: a FALSE return from
gimp_drawable_mask_bounds doesn't mean failure. Restore old
behavior. Fixes bug #357223.
2006-10-03 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/dialogs/offset-dialog.c: apply patch from David

View file

@ -994,11 +994,7 @@ drw_get_mask_bounds(PyGimpDrawable *self, void *closure)
{
gint x1, y1, x2, y2;
if (!gimp_drawable_mask_bounds(self->ID, &x1, &y1, &x2, &y2)) {
Py_INCREF(Py_None);
return Py_None;
}
gimp_drawable_mask_bounds(self->ID, &x1, &y1, &x2, &y2);
return Py_BuildValue("(iiii)", x1, y1, x2, y2);
}