gimp r24820 - in trunk: . app/gegl



Author: mitch
Date: Wed Feb  6 15:06:44 2008
New Revision: 24820
URL: http://svn.gnome.org/viewvc/gimp?rev=24820&view=rev

Log:
2008-02-06  Michael Natterer  <mitch gimp org>

	* app/gegl/gimpoperationhuesaturation.c
	(gimp_operation_hue_saturation_process): don't crash if there is
	no config object.



Modified:
   trunk/ChangeLog
   trunk/app/gegl/gimpoperationhuesaturation.c

Modified: trunk/app/gegl/gimpoperationhuesaturation.c
==============================================================================
--- trunk/app/gegl/gimpoperationhuesaturation.c	(original)
+++ trunk/app/gegl/gimpoperationhuesaturation.c	Wed Feb  6 15:06:44 2008
@@ -127,15 +127,17 @@
                                        void          *out_buf,
                                        glong          samples)
 {
-  GimpOperationPointFilter *point   = GIMP_OPERATION_POINT_FILTER (operation);
-  GimpHueSaturationConfig  *config  = GIMP_HUE_SATURATION_CONFIG (point->config);
-  gfloat                   *src     = in_buf;
-  gfloat                   *dest    = out_buf;
-  gfloat                    overlap = config->overlap / 2.0;
+  GimpOperationPointFilter *point  = GIMP_OPERATION_POINT_FILTER (operation);
+  GimpHueSaturationConfig  *config = GIMP_HUE_SATURATION_CONFIG (point->config);
+  gfloat                   *src    = in_buf;
+  gfloat                   *dest   = out_buf;
+  gfloat                    overlap;
 
   if (! config)
     return FALSE;
 
+  overlap = config->overlap / 2.0;
+
   while (samples--)
     {
       GimpRGB  rgb;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]