Fix for #102562 + minor clean-up of bmp plug-in

This commit is contained in:
Maurits Rijk
2003-01-05 15:48:32 +00:00
parent 50c8c56fe0
commit 0eccb0fec1
9 changed files with 113 additions and 137 deletions

View File

@ -197,8 +197,8 @@ gimp_pixel_fetcher_get_pixel2 (GimpPixelFetcher *pf,
}
break;
case PIXEL_SMEAR:
x = CLAMP (x, 0, pf->img_width);
y = CLAMP (y, 0, pf->img_height);
x = CLAMP (x, 0, pf->img_width - 1);
y = CLAMP (y, 0, pf->img_height - 1);
break;
case PIXEL_BLACK:
if (x < 0 || x >= pf->img_width ||