fixed range check.

2007-10-28  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorscales.c 
(gimp_color_scales_set_channel):
	fixed range check.


svn path=/trunk/; revision=23981
This commit is contained in:
Sven Neumann 2007-10-28 19:15:44 +00:00 committed by Sven Neumann
parent fa3e0fb71a
commit c9c38e5e0d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-10-28 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpcolorscales.c (gimp_color_scales_set_channel):
fixed range check.
2007-10-28 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimpscrolledpreview.c

View File

@ -267,7 +267,7 @@ gimp_color_scales_set_channel (GimpColorSelector *selector,
{
GimpColorScales *scales = GIMP_COLOR_SCALES (selector);
if (channel >= 0 && channel <= 7)
if (channel >= 0 && channel < 7)
{
g_signal_handlers_block_by_func (scales->toggles[channel],
gimp_color_scales_toggle_update,