added a missing GimpHistogramChannel parameter. Fixes wrong values in the
2003-10-30 Sven Neumann <sven@gimp.org> * app/base/gimphistogram.[ch] (gimp_histogram_get_count): added a missing GimpHistogramChannel parameter. Fixes wrong values in the histogram tool. * app/base/levels.c * app/base/lut-funcs.c * app/pdb/color_cmds.c * tools/pdbgen/pdb/color.pdb: changed accordingly. * app/tools/gimphistogramtool.c: update the histogram statistics on channel changes.
This commit is contained in:
committed by
Sven Neumann
parent
7937639ed1
commit
d4b49c0c38
@ -99,7 +99,7 @@ levels_channel_auto (Levels *levels,
|
||||
levels->low_output[channel] = 0;
|
||||
levels->high_output[channel] = 255;
|
||||
|
||||
count = gimp_histogram_get_count (hist, 0, 255);
|
||||
count = gimp_histogram_get_count (hist, channel, 0, 255);
|
||||
|
||||
if (count == 0.0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user