gimp r24821 - in trunk: . app/gegl
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r24821 - in trunk: . app/gegl
- Date: Wed, 6 Feb 2008 15:08:19 +0000 (GMT)
Author: mitch
Date: Wed Feb 6 15:08:18 2008
New Revision: 24821
URL: http://svn.gnome.org/viewvc/gimp?rev=24821&view=rev
Log:
2008-02-06 Michael Natterer <mitch gimp org>
* app/gegl/gimpoperationposterize.c
* app/gegl/gimpoperationhuesaturation.c (process): don't crash if
there is no config object.
Modified:
trunk/ChangeLog
trunk/app/gegl/gimpoperationposterize.c
Modified: trunk/app/gegl/gimpoperationposterize.c
==============================================================================
--- trunk/app/gegl/gimpoperationposterize.c (original)
+++ trunk/app/gegl/gimpoperationposterize.c Wed Feb 6 15:08:18 2008
@@ -83,11 +83,13 @@
GimpPosterizeConfig *config = GIMP_POSTERIZE_CONFIG (point->config);
gfloat *src = in_buf;
gfloat *dest = out_buf;
- gfloat levels = config->levels - 1.0;
+ gfloat levels;
if (! config)
return FALSE;
+ levels = config->levels - 1.0;
+
while (samples--)
{
dest[RED_PIX] = RINT (src[RED_PIX] * levels) / levels;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]