quick fix so colors in the PDB work again.

2006-06-25  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-pdb.c: quick fix so colors in the PDB work
        again.
This commit is contained in:
Manish Singh 2006-06-26 05:29:58 +00:00 committed by Manish Singh
parent 68dfb3f223
commit 1eeaa25fa0
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-06-25 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-pdb.c: quick fix so colors in the PDB work
again.
2006-06-25 Manish Singh <yosh@gimp.org>
* libgimp/gimpuitypes.h

View file

@ -452,8 +452,8 @@ pygimp_param_from_tuple(PyObject *args, const GimpParamDef *ptype, int nparams)
b = PySequence_GetItem(item, 2);
check(!PyInt_Check(r) || !PyInt_Check(g) ||
!PyInt_Check(b));
gimp_rgb_set_uchar(&ret[i].data.d_color, PyInt_AsLong(r),
PyInt_AsLong(g), PyInt_AsLong(b));
gimp_rgba_set_uchar(&ret[i].data.d_color, PyInt_AsLong(r),
PyInt_AsLong(g), PyInt_AsLong(b), 255);
break;
case GIMP_PDB_REGION:
check(!PySequence_Check(item) ||