Index: app/base/lut-funcs.c
===================================================================
RCS file: /cvs/gnome/gimp/app/base/lut-funcs.c,v
retrieving revision 1.16
diff -u -r1.16 lut-funcs.c
--- app/base/lut-funcs.c	18 Feb 2004 13:43:42 -0000	1.16
+++ app/base/lut-funcs.c	21 Feb 2006 17:50:43 -0000
@@ -59,20 +59,7 @@
   /* apply contrast */
   if (data->contrast < 0.0)
     {
-      if (value > 0.5)
-	nvalue = 1.0 - value;
-      else
-	nvalue = value;
-
-      if (nvalue < 0.0)
-	nvalue = 0.0;
-
-      nvalue = 0.5 * pow (nvalue * 2.0 , (double) (1.0 + data->contrast));
-
-      if (value > 0.5)
-	value = 1.0 - nvalue;
-      else
-	value = nvalue;
+      value  = value + (value - 0.5) * data->contrast ;
     }
   else
     {
