gimp r24821 - in trunk: . app/gegl



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]