diff --git a/pd/src/g_template.c b/pd/src/g_template.c index 778991e6260efa636ecda83c191aceb17d9dffe3..9146fcc22867199e854eba717ae268240da303cc 100644 --- a/pd/src/g_template.c +++ b/pd/src/g_template.c @@ -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) {