gimp r27018 - in trunk: . app/core app/gegl



Author: simon
Date: Fri Sep 19 22:41:58 2008
New Revision: 27018
URL: http://svn.gnome.org/viewvc/gimp?rev=27018&view=rev

Log:
2008-09-20  Simon Budig  <simon gimp org>

	* app/core/gimpcurve.c: whitespace fix

	* app/gegl/gimplevelsconfig.c: make sure that the points set by
	default gets unset before calculating the levels->curves
	transition. We don't want stray points in the corners.



Modified:
   trunk/ChangeLog
   trunk/app/core/gimpcurve.c
   trunk/app/gegl/gimplevelsconfig.c

Modified: trunk/app/core/gimpcurve.c
==============================================================================
--- trunk/app/core/gimpcurve.c	(original)
+++ trunk/app/core/gimpcurve.c	Fri Sep 19 22:41:58 2008
@@ -358,7 +358,7 @@
 
 static gint64
 gimp_curve_get_memsize (GimpObject *object,
-                          gint64     *gui_size)
+                        gint64     *gui_size)
 {
   GimpCurve *curve   = GIMP_CURVE (object);
   gint64     memsize = 0;

Modified: trunk/app/gegl/gimplevelsconfig.c
==============================================================================
--- trunk/app/gegl/gimplevelsconfig.c	(original)
+++ trunk/app/gegl/gimplevelsconfig.c	Fri Sep 19 22:41:58 2008
@@ -603,6 +603,10 @@
       gdouble     delta_out;
       gdouble     x, y;
 
+      /* clear the points set by default */
+      gimp_curve_set_point (curve, 0, -1, -1);
+      gimp_curve_set_point (curve, n_points - 1, -1, -1);
+
       delta_in  = config->high_input[channel] - config->low_input[channel];
       delta_out = config->high_output[channel] - config->low_output[channel];
 



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