mirror of https://github.com/GNOME/gimp.git
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:
parent
7a3d956a97
commit
e4a1309848
|
@ -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).
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue