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:
Sven Neumann
2003-10-30 17:48:16 +00:00
committed by Sven Neumann
parent 7937639ed1
commit d4b49c0c38
8 changed files with 107 additions and 86 deletions

View File

@ -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)
{