fixed off-by-one error in gimp_pixel_fetcher_get_pixel () for EDGE_BLACK

2004-03-12  Simon Budig  <simon@gimp.org>

	* libgimp/gimppixelfetcher.c: fixed off-by-one error
	in gimp_pixel_fetcher_get_pixel () for EDGE_BLACK mode.

	Fixes bug #136907
This commit is contained in:
Simon Budig 2004-03-12 01:37:49 +00:00 committed by Simon Budig
parent 8a2b0af371
commit 36e723509a
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2004-03-12 Simon Budig <simon@gimp.org>
* libgimp/gimppixelfetcher.c: fixed off-by-one error
in gimp_pixel_fetcher_get_pixel () for EDGE_BLACK mode.
Fixes bug #136907
2004-03-12 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-dnd.c (gimp_display_shell_bucket_fill):

View File

@ -218,10 +218,8 @@ gimp_pixel_fetcher_get_pixel (GimpPixelFetcher *pf,
if (x < 0 || x >= pf->img_width ||
y < 0 || y >= pf->img_height)
{
i = pf->img_bpp;
do
for (i = 0; i < pf->img_bpp; i++)
pixel[i] = 0;
while (--i);
return;
}