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:
Manish Singh
2008-01-27 03:01:50 +00:00
committed by Manish Singh
parent a85213cd5f
commit dc84799993
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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");