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:

committed by
Sven Neumann

parent
fa3e0fb71a
commit
c9c38e5e0d
@ -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,
|
||||
|
Reference in New Issue
Block a user