summaryrefslogtreecommitdiff
path: root/source/fitz/draw-path.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2018-03-13 16:49:49 +0000
committerRobin Watts <robin.watts@artifex.com>2018-03-13 18:46:15 +0000
commit3afca2bb825017a55aadb67beb1d3318ce5f5c56 (patch)
tree8d4f99a70aadce09efc394be93108c0c208d878c /source/fitz/draw-path.c
parentc6acebf711335e09e3c8285a3de7471de2754af4 (diff)
downloadmupdf-3afca2bb825017a55aadb67beb1d3318ce5f5c56.tar.xz
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!
Diffstat (limited to 'source/fitz/draw-path.c')
-rw-r--r--source/fitz/draw-path.c2
1 files changed, 1 insertions, 1 deletions
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];