Commit 36e72350 authored by Simon Budig's avatar Simon Budig Committed by Simon Budig

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
parent 8a2b0af3
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):
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment