Fix the end of group check in gimage_mask_stroke. This fixes bug #8699

* app/gimage_mask.c: Fix the end of group check in
	gimage_mask_stroke.  This fixes bug #8699
This commit is contained in:
jaycox 2000-04-29 22:00:27 +00:00
parent 867fa5ccef
commit 2ba5ae4c24
3 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-04-29 Jay Cox <jaycox@earthlink.net>
* app/gimage_mask.c: Fix the end of group check in
gimage_mask_stroke. This fixes bug #8699
2000-04-29 Asbjorn Pettersen <asbjornP@dualog.no>
* app/gimage_cmds.c (finite): #define finite(d) isfinite(d) for OS/2

View File

@ -587,7 +587,10 @@ gimage_mask_stroke (GImage *gimage,
for (i = 0; i < num_strokes; i++)
{
while (stroke_segs[seg].x2 != -1)
while ((stroke_segs[seg].x1 != -1 ||
stroke_segs[seg].x2 != -1 ||
stroke_segs[seg].y1 != -1 ||
stroke_segs[seg].y2 != -1))
{
stroke_points[cpnt++] = (gdouble)(stroke_segs[seg].x2 - offx);
stroke_points[cpnt++] = (gdouble)(stroke_segs[seg].y2 - offy);

View File

@ -587,7 +587,10 @@ gimage_mask_stroke (GImage *gimage,
for (i = 0; i < num_strokes; i++)
{
while (stroke_segs[seg].x2 != -1)
while ((stroke_segs[seg].x1 != -1 ||
stroke_segs[seg].x2 != -1 ||
stroke_segs[seg].y1 != -1 ||
stroke_segs[seg].y2 != -1))
{
stroke_points[cpnt++] = (gdouble)(stroke_segs[seg].x2 - offx);
stroke_points[cpnt++] = (gdouble)(stroke_segs[seg].y2 - offy);