diff options
Diffstat (limited to 'source/fitz/svg-device.c')
-rw-r--r-- | source/fitz/svg-device.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/fitz/svg-device.c b/source/fitz/svg-device.c index 7397d059..8a83c97b 100644 --- a/source/fitz/svg-device.c +++ b/source/fitz/svg-device.c @@ -167,8 +167,11 @@ svg_dev_stroke_state(fz_context *ctx, svg_device *sdev, const fz_stroke_state *s exp = fz_matrix_expansion(ctm); if (exp == 0) exp = 1; + exp = stroke_state->linewidth/exp; + if (exp < 1) + exp = 1; - fz_printf(ctx, out, " stroke-width=\"%g\"", stroke_state->linewidth/exp); + fz_printf(ctx, out, " stroke-width=\"%g\"", exp); fz_printf(ctx, out, " stroke-linecap=\"%s\"", (stroke_state->start_cap == FZ_LINECAP_SQUARE ? "square" : (stroke_state->start_cap == FZ_LINECAP_ROUND ? "round" : "butt"))); |