Applied patch from Austin Donnelly to fix rendering of the topmost

2001-03-10  Daniel Egger  <egger@suse.de>

	* plug-ins/common/sobel.c: Applied patch from
	Austin Donnelly to fix rendering of the topmost
	scanline.
This commit is contained in:
Daniel Egger 2001-03-11 16:16:14 +00:00 committed by Daniel Egger
parent b8a72df54e
commit f7cfaa825a
2 changed files with 11 additions and 4 deletions

View File

@ -1,4 +1,11 @@
2001-03-10 Daniel Egger <egger@suse.de>
* plug-ins/common/sobel.c: Applied patch from
Austin Donnelly to fix rendering of the topmost
scanline.
2001-03-10 Garry R. Osgood <grosgood@rcn.com>
* app/Makefile.am
Inclusion of David's MMX code into Makefile now
depends on prior definition of HAVE_ASM_MMX.

View File

@ -312,10 +312,10 @@ sobel_prepare_row (GimpPixelRgn *pixel_rgn,
{
gint b;
if (y == 0)
gimp_pixel_rgn_get_row (pixel_rgn, data, x, (y + 1), w);
else if (y == pixel_rgn->h)
gimp_pixel_rgn_get_row (pixel_rgn, data, x, (y - 1), w);
if (y < 0)
gimp_pixel_rgn_get_row (pixel_rgn, data, x, 0, w);
else if (y >= pixel_rgn->h)
gimp_pixel_rgn_get_row (pixel_rgn, data, x, pixel_rgn->h - 1, w);
else
gimp_pixel_rgn_get_row (pixel_rgn, data, x, y, w);