fixed bug in buffer initialization, spotted by Tobias Lenz.

2005-09-20  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.c (erode_region, dilate_region):
	fixed bug in buffer initialization, spotted by Tobias Lenz.
This commit is contained in:
Sven Neumann 2005-09-20 19:38:31 +00:00 committed by Sven Neumann
parent 7a3d956a97
commit e4a1309848
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-09-20 Sven Neumann <sven@gimp.org>
* app/paint-funcs/paint-funcs.c (erode_region, dilate_region):
fixed bug in buffer initialization, spotted by Tobias Lenz.
2005-09-20 Sven Neumann <sven@gimp.org>
* plug-ins/common/svg.c: corrected version check (bug #314400).

View File

@ -3395,7 +3395,7 @@ erode_region (PixelRegion *region)
buf[0][0] = buf[0][1];
buf[0][width + 1] = buf[0][width];
memcpy (buf[1], buf[2], width + 2);
memcpy (buf[1], buf[0], width + 2);
for (y = 0; y < region->h; y++)
{
@ -3459,7 +3459,7 @@ dilate_region (PixelRegion *region)
buf[0][0] = buf[0][1];
buf[0][width + 1] = buf[0][width];
memcpy (buf[1], buf[2], width + 2);
memcpy (buf[1], buf[0], width + 2);
for (y = 0; y < region->h; y++)
{