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>
This commit is contained in:
parent
826474a1a3
commit
6455a2ea83
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue