Can someone please look into this patch I've been submitted?

Ta,
Austin

--- Begin Message ---
Title: Patch for wishlist entry 75558

Hi,
I wrote a patch for the bugzilla entry 75558, curve tool does not remember old
values.
I wrote a patch for this a while ago, but it seems to be removed in the newer
gimp versions because of some problems.

So I made the change again and hope that you can commit it to cvs.
This time I tested it with RGB and grayscale pictures. No problems whatever.

(patch is appended)

Thanks,
Ralf

--

________________________
Ralf Engels
Software design engineer
www.rengels.de

--- gimpcurvestool.c.old	Fri Jan 10 12:30:05 2003
+++ gimpcurvestool.c	Fri Jan 10 12:38:57 2003
@@ -289,17 +289,17 @@
   if (!curves_dialog)
     {
       curves_dialog = curves_dialog_new ();
-    }
-     
-  /*  Initialize the values  */
-  curves_dialog->channel = GIMP_HISTOGRAM_VALUE;
-  for (i = 0; i < 5; i++)
-    for (j = 0; j < 256; j++)
-      curves_dialog->curve[i][j] = j;
-  
-  for (i = 0; i < 5; i++)
-    {
-      curves_channel_reset (i);
+
+      /*  Initialize the values  */
+      curves_dialog->channel = GIMP_HISTOGRAM_VALUE;
+      for (i = 0; i < 5; i++)
+        for (j = 0; j < 256; j++)
+          curves_dialog->curve[i][j] = j;
+      
+      for (i = 0; i < 5; i++)
+        {
+          curves_channel_reset (i);
+        }
     }
 
   curves_dialog->drawable  = gimp_image_active_drawable (gdisp->gimage);
@@ -333,6 +333,9 @@
     gtk_widget_show (curves_dialog->shell);
 
   curves_update (curves_dialog, GRAPH | DRAW);
+
+  if (curves_dialog->preview)
+    curves_preview (curves_dialog);
 }
 
 static void
--- End Message ---
_______________________________________________
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer

Reply via email to