there is no need to mess with the selected channels within check_config().

2007-09-06  Simon Budig  <simon@gimp.org>

	* plug-ins/common/convmatrix.c: there is no need to mess
	with the selected channels within check_config(). Also fix
	bug with with copying its values into the chanmask
	in convolve_image()

	Fixes bug #472518


svn path=/trunk/; revision=23468
This commit is contained in:
Simon Budig
2007-09-06 10:00:21 +00:00
committed by Simon Budig
parent dad29254f6
commit 005badf3ac
2 changed files with 16 additions and 7 deletions

View File

@ -1,3 +1,12 @@
2007-09-06 Simon Budig <simon@gimp.org>
* plug-ins/common/convmatrix.c: there is no need to mess
with the selected channels within check_config(). Also fix
bug with with copying its values into the chanmask
in convolve_image()
Fixes bug #472518
2007-09-06 Simon Budig <simon@gimp.org>
* plug-ins/script-fu/tinyscheme/scheme-private.h: quick fix:

View File

@ -605,14 +605,16 @@ convolve_image (GimpDrawable *drawable,
if (gimp_drawable_is_rgb (drawable->drawable_id))
{
for (i = 0; i <CHANNELS; i++)
for (i = 0; i < CHANNELS; i++)
chanmask[i] = config.channels[i + 1];
}
else /* Grayscale */
chanmask[0] = config.channels[0];
{
chanmask[0] = config.channels[0];
}
if (gimp_drawable_has_alpha (drawable->drawable_id))
chanmask[alpha_channel] = config.channels[alpha_channel];
chanmask[alpha_channel] = config.channels[4];
src_row_w = src_w + HALF_WINDOW + HALF_WINDOW;
@ -842,14 +844,12 @@ check_config (GimpDrawable *drawable)
{
gint i;
for (i = 0; i < CHANNELS; i++)
config.channels[i] = FALSE;
config.alpha_weighting = 0;
if (!gimp_drawable_has_alpha (drawable->drawable_id))
{
config.alpha_weighting = -1;
config.bmode = EXTEND;
config.alpha_weighting = -1;
config.bmode = EXTEND;
}
}