mirror of https://github.com/GNOME/gimp.git
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:
parent
8a2b0af371
commit
36e723509a
|
@ -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):
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue