From 3afca2bb825017a55aadb67beb1d3318ce5f5c56 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 13 Mar 2018 16:49:49 +0000 Subject: Bug 698963: Fix dash rendering. When rendering dash lines with a dash pattern that starts with a length of zero, the first dash should be of zero length. If we are using round caps, this should actually show up! --- source/fitz/draw-path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/fitz/draw-path.c b/source/fitz/draw-path.c index deb17932..52c4af2f 100644 --- a/source/fitz/draw-path.c +++ b/source/fitz/draw-path.c @@ -1000,7 +1000,7 @@ fz_dash_moveto(fz_context *ctx, struct sctx *s, float x, float y) s->offset = 0; s->phase = s->dash_phase; - while (s->phase >= s->dash_list[s->offset]) + while (s->phase > 0 && s->phase >= s->dash_list[s->offset]) { s->toggle = !s->toggle; s->phase -= s->dash_list[s->offset]; -- cgit v1.2.3