Commit fec9cf6c authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix regression drawing data structure polyline/polygon when points is 0

parent 3e94d52e
......@@ -3514,10 +3514,13 @@ static void svg_togui(t_svg *x, t_template *template, t_word *data)
{
int i, n = x->x_nargs;
gui_s("points");
gui_start_array();
for (i = 0; i < x->x_nargs; i++)
gui_f(fielddesc_getcoord(&x->x_vec[i], template, data, 1));
gui_end_array();
if (x->x_nargs)
{
gui_start_array();
for (i = 0; i < x->x_nargs; i++)
gui_f(fielddesc_getcoord(&x->x_vec[i], template, data, 1));
gui_end_array();
}
}
if (x->x_strokeopacity.a_flag)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment