Commit 1eeaa25f authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

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.
parent 68dfb3f2
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
......
......@@ -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) ||
......
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