diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-09-02 15:50:55 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-09-02 15:50:55 +0200 |
commit | ae5f1a773749c270c38c63c8a4857ce2c5eff6aa (patch) | |
tree | 5e08c5a55cca767f4d64b091258db42c6f76380f /draw/draw_path.c | |
parent | 50e38df556f23d10d90647d8277c541102226c22 (diff) | |
download | mupdf-ae5f1a773749c270c38c63c8a4857ce2c5eff6aa.tar.xz |
Fix bug 692356: use stricter limit for dash pattern lengths.
Diffstat (limited to 'draw/draw_path.c')
-rw-r--r-- | draw/draw_path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/draw_path.c b/draw/draw_path.c index aed5ba4b..efa881ef 100644 --- a/draw/draw_path.c +++ b/draw/draw_path.c @@ -758,7 +758,7 @@ fz_flatten_dash_path(fz_gel *gel, fz_path *path, fz_stroke_state *stroke, fz_mat phase_len = 0; for (i = 0; i < stroke->dash_len; i++) phase_len += stroke->dash_list[i]; - if (phase_len <= FLT_EPSILON) + if (phase_len < 0.01f || phase_len < stroke->linewidth * 0.5f) { fz_flatten_stroke_path(gel, path, stroke, ctm, flatness, linewidth); return; |