From 6455a2ea83493165641be350e3dfe1dd93af5dea Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 5 Mar 2019 11:17:07 +0000 Subject: SVG content handler: Fix plot style stroke_width In 8332bf6b2a, when the stroke width was moved from a parameter to the plot style field, it accidentally used the `stroke` field of the svgtiny shape (the color) instead of `stroke_width`. Signed-off-by: Michael Drake --- content/handlers/image/svg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/handlers/image/svg.c b/content/handlers/image/svg.c index 51260733d..99722495f 100644 --- a/content/handlers/image/svg.c +++ b/content/handlers/image/svg.c @@ -189,7 +189,7 @@ svg_redraw_internal(struct content *c, for (i = 0; i != diagram->shape_count; i++) { if (diagram->shape[i].path) { pstyle.stroke_width = plot_style_int_to_fixed( - diagram->shape[i].stroke); + diagram->shape[i].stroke_width); pstyle.stroke_colour = BGR(diagram->shape[i].stroke); pstyle.fill_colour = BGR(diagram->shape[i].fill); res = ctx->plot->path(ctx, -- cgit v1.2.3