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:
Michael Natterer 2008-05-21 13:29:08 +00:00 committed by Michael Natterer
parent e86e003224
commit 37ff630992
2 changed files with 9 additions and 0 deletions

View File

@ -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>
Add Desaturate as an image-map tool with live preview (bug #533808):

View File

@ -85,6 +85,9 @@ gimp_operation_desaturate_process (GeglOperation *operation,
gfloat *src = in_buf;
gfloat *dest = out_buf;
if (! config)
return FALSE;
switch (config->mode)
{
case GIMP_DESATURATE_LIGHTNESS: