summaryrefslogtreecommitdiff
path: root/source/fitz/draw-path.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/draw-path.c')
-rw-r--r--source/fitz/draw-path.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/fitz/draw-path.c b/source/fitz/draw-path.c
index 6fa6191d..b33ea8b4 100644
--- a/source/fitz/draw-path.c
+++ b/source/fitz/draw-path.c
@@ -971,7 +971,8 @@ fz_flatten_dash_path(fz_gel *gel, fz_path *path, const fz_stroke_state *stroke,
for (i = 0; i < stroke->dash_len; i++)
phase_len += stroke->dash_list[i];
fz_gel_scissor(gel, &s.rect);
- fz_invert_matrix(&inv, ctm);
+ if (fz_try_invert_matrix(&inv, ctm))
+ return;
fz_transform_rect(&s.rect, &inv);
s.rect.x0 -= linewidth;
s.rect.x1 += linewidth;