summaryrefslogtreecommitdiff
path: root/content/handlers/image/svg.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-03-05 11:17:07 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2019-03-05 11:17:07 +0000
commit6455a2ea83493165641be350e3dfe1dd93af5dea (patch)
treef90a1ba3434379ada46c602cbed23eb07cd94e43 /content/handlers/image/svg.c
parent826474a1a3707bb837bb1b1aa687d4981acd914d (diff)
downloadnetsurf-6455a2ea83493165641be350e3dfe1dd93af5dea.tar.gz
netsurf-6455a2ea83493165641be350e3dfe1dd93af5dea.tar.bz2
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 <michael.drake@codethink.co.uk>
Diffstat (limited to 'content/handlers/image/svg.c')
-rw-r--r--content/handlers/image/svg.c2
1 files changed, 1 insertions, 1 deletions
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,