fix subsequent error (calculated parameters where not used)

2008-01-26 Joao S. O. Bueno <gwidion@mpc.com.br>

        * plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): fix
        subsequent error (calculated parameters where not used)

svn path=/trunk/; revision=24715
This commit is contained in:
Joao S. O. Bueno
2008-01-27 04:58:18 +00:00
committed by João Sebastião de Oliveira Bueno Calligaris
parent dc84799993
commit 2ca4dcf882
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-01-26 Joao S. O. Bueno <gwidion@mpc.com.br>
* plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): fix
subsequent error (calculated parameters where not used)
2008-01-26 Manish Singh <yosh@gimp.org>
* plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): fix

View File

@ -2398,6 +2398,10 @@ pygimp_rgb_from_pyobject(PyObject *object, GimpRGB *color)
SET_MEMBER(a);
else
rgb.a = 1.0;
color->r = rgb.r;
color->g = rgb.g;
color->b = rgb.b;
color->a = rgb.a;
return 1;
}