gimp r25171 - in branches/gimp-2-4: . app/tools



Author: neo
Date: Sat Mar 22 18:13:24 2008
New Revision: 25171
URL: http://svn.gnome.org/viewvc/gimp?rev=25171&view=rev

Log:
2008-03-22  Sven Neumann  <sven gimp org>

	* app/tools/gimpcurvestool.c (gimp_curves_tool_initialize): set
	the curve type to the type of the initial curve, which is 
SMOOTH.
	Fixes bug #523873.



Modified:
   branches/gimp-2-4/ChangeLog
   branches/gimp-2-4/app/tools/gimpcurvestool.c

Modified: branches/gimp-2-4/app/tools/gimpcurvestool.c
==============================================================================
--- branches/gimp-2-4/app/tools/gimpcurvestool.c	(original)
+++ branches/gimp-2-4/app/tools/gimpcurvestool.c	Sat Mar 22 18:13:24 2008
@@ -194,9 +194,10 @@
 {
   gint i;
 
-  tool->curves  = g_slice_new0 (Curves);
-  tool->lut     = gimp_lut_new ();
-  tool->channel = GIMP_HISTOGRAM_VALUE;
+  tool->curves     = g_slice_new0 (Curves);
+  tool->lut        = gimp_lut_new ();
+  tool->channel    = GIMP_HISTOGRAM_VALUE;
+  tool->curve_type = GIMP_CURVE_SMOOTH;
 
   curves_init (tool->curves);
 
@@ -259,13 +260,15 @@
 
   curves_init (c_tool->curves);
 
-  c_tool->channel = GIMP_HISTOGRAM_VALUE;
-  c_tool->color   = gimp_drawable_is_rgb (drawable);
-  c_tool->alpha   = gimp_drawable_has_alpha (drawable);
-
-  c_tool->selected = 0;
-  c_tool->grabbed  = FALSE;
-  c_tool->last     = 0;
+  c_tool->curve_type = GIMP_CURVE_SMOOTH;
+
+  c_tool->channel    = GIMP_HISTOGRAM_VALUE;
+  c_tool->color      = gimp_drawable_is_rgb (drawable);
+  c_tool->alpha      = gimp_drawable_has_alpha (drawable);
+
+  c_tool->selected   = 0;
+  c_tool->grabbed    = FALSE;
+  c_tool->last       = 0;
 
   GIMP_TOOL_CLASS (parent_class)->initialize (tool, display, error);
 



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