mirror of https://github.com/GNOME/gimp.git
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:
parent
867fa5ccef
commit
2ba5ae4c24
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue