diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/draw-path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/draw-path.c b/source/fitz/draw-path.c index 9949e1d7..bf7a9022 100644 --- a/source/fitz/draw-path.c +++ b/source/fitz/draw-path.c @@ -1326,7 +1326,7 @@ fz_flatten_dash_path(fz_context *ctx, fz_gel *gel, fz_path *path, const fz_strok if (s.dash_len > 0 && s.dash_total == 0) return; - s.dash_phase = stroke->dash_phase; + s.dash_phase = fmodf(stroke->dash_phase, s.dash_total); s.cap = stroke->start_cap; s.toggle = 0; s.offset = 0; |