Re: [Gimp-developer] FW: Patch for wishlist entry 75558

2003-01-10 Thread Sven Neumann
Hi,

"Austin Donnelly" <[EMAIL PROTECTED]> writes:

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

can you please ask the submitter to attach the patch to the bug-report
and to explain why it should be applied.


Salut, Sven
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



[Gimp-developer] FW: Patch for wishlist entry 75558

2003-01-10 Thread Austin Donnelly
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