diff options
Diffstat (limited to 'render/fill.c')
-rw-r--r-- | render/fill.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/render/fill.c b/render/fill.c index fdb12205..d25f78b1 100644 --- a/render/fill.c +++ b/render/fill.c @@ -114,10 +114,19 @@ fz_fillpath(fz_gel *gel, fz_pathnode *path, fz_matrix ctm, float flatness) error = line(gel, &ctm, cx, cy, bx, by); if (error) return error; + cx = bx; + cy = by; break; } } + if (i && (cx != bx || cy != by)) + { + error = line(gel, &ctm, cx, cy, bx, by); + if (error) + return error; + } + return nil; } |