fix error reporting.
2008-01-26 Manish Singh <yosh@gimp.org> * plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): fix error reporting. svn path=/trunk/; revision=24714
This commit is contained in:

committed by
Manish Singh

parent
a85213cd5f
commit
dc84799993
@ -1,3 +1,8 @@
|
||||
2008-01-26 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): fix
|
||||
error reporting.
|
||||
|
||||
2008-01-25 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/gegl/Makefile.am
|
||||
|
@ -2386,7 +2386,7 @@ pygimp_rgb_from_pyobject(PyObject *object, GimpRGB *color)
|
||||
else { \
|
||||
PyErr_SetString(PyExc_TypeError, \
|
||||
#m " must be an int or a float"); \
|
||||
return -1; \
|
||||
return 0; \
|
||||
} \
|
||||
} G_STMT_END
|
||||
|
||||
@ -2398,6 +2398,8 @@ pygimp_rgb_from_pyobject(PyObject *object, GimpRGB *color)
|
||||
SET_MEMBER(a);
|
||||
else
|
||||
rgb.a = 1.0;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
PyErr_SetString(PyExc_TypeError, "could not convert to GimpRGB");
|
||||
|
Reference in New Issue
Block a user