Bill Skaggs <weskaggs@primate.ucdavis.edu>

* app/base/lut-funcs.c (equalize_lut_fuct): Don't 
	equalize the alpha channel.  Fixes bug #510210.

svn path=/trunk/; revision=24648
This commit is contained in:
William Skaggs 2008-01-18 18:14:14 +00:00
parent 30907dbd76
commit ea9d46fa71
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-01-18 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* app/base/lut-funcs.c (equalize_lut_fuct): Don't
equalize the alpha channel. Fixes bug #510210.
2008-01-18 Michael Natterer <mitch@gimp.org>
* app/gegl/Makefile.am

View File

@ -293,13 +293,17 @@ typedef struct
static gfloat
equalize_lut_func (hist_lut_struct *hlut,
gint n_channels,
gint nchannels,
gint channel,
gfloat value)
{
gint i = 0;
gint j;
/* don't equalize the alpha channel */
if ((nchannels == 2 || nchannels == 4) && channel == nchannels - 1)
return value;
j = (gint) (value * 255.0 + 0.5);
while (hlut->part[channel][i + 1] <= j)