mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 04:22:29 +00:00
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:
parent
9acce12a98
commit
f7c0e8ce13
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue