From 37ff630992cd6789e07a07c9d1413f521d5be364 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 21 May 2008 13:29:08 +0000 Subject: [PATCH] bail out if there is no config object. 2008-05-21 Michael Natterer * app/gegl/gimpoperationdesaturate.c (gimp_operation_desaturate_process): bail out if there is no config object. svn path=/trunk/; revision=25727 --- ChangeLog | 6 ++++++ app/gegl/gimpoperationdesaturate.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 48f351ba80..5c559e5c7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-21 Michael Natterer + + * app/gegl/gimpoperationdesaturate.c + (gimp_operation_desaturate_process): bail out if there is no + config object. + 2008-05-21 Sven Neumann Add Desaturate as an image-map tool with live preview (bug #533808): diff --git a/app/gegl/gimpoperationdesaturate.c b/app/gegl/gimpoperationdesaturate.c index abf00c1f3a..6e57878e01 100644 --- a/app/gegl/gimpoperationdesaturate.c +++ b/app/gegl/gimpoperationdesaturate.c @@ -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: