bail out if there is no config object.
2008-05-21 Michael Natterer <mitch@gimp.org> * app/gegl/gimpoperationdesaturate.c (gimp_operation_desaturate_process): bail out if there is no config object. svn path=/trunk/; revision=25727
This commit is contained in:

committed by
Michael Natterer

parent
e86e003224
commit
37ff630992
@ -1,3 +1,9 @@
|
|||||||
|
2008-05-21 Michael Natterer <mitch@gimp.org>
|
||||||
|
|
||||||
|
* app/gegl/gimpoperationdesaturate.c
|
||||||
|
(gimp_operation_desaturate_process): bail out if there is no
|
||||||
|
config object.
|
||||||
|
|
||||||
2008-05-21 Sven Neumann <sven@gimp.org>
|
2008-05-21 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
Add Desaturate as an image-map tool with live preview (bug #533808):
|
Add Desaturate as an image-map tool with live preview (bug #533808):
|
||||||
|
@ -85,6 +85,9 @@ gimp_operation_desaturate_process (GeglOperation *operation,
|
|||||||
gfloat *src = in_buf;
|
gfloat *src = in_buf;
|
||||||
gfloat *dest = out_buf;
|
gfloat *dest = out_buf;
|
||||||
|
|
||||||
|
if (! config)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
switch (config->mode)
|
switch (config->mode)
|
||||||
{
|
{
|
||||||
case GIMP_DESATURATE_LIGHTNESS:
|
case GIMP_DESATURATE_LIGHTNESS:
|
||||||
|
Reference in New Issue
Block a user