Commit f7c0e8ce authored by Manish Singh's avatar Manish Singh Committed by Manish Singh
Browse files

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.
parent 9acce12a
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
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment