Skip to content
Snippets Groups Projects
Commit 2588949e authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix for using [field] inside a subpatch

parent bb8ff4ef
No related branches found
No related tags found
No related merge requests found
......@@ -1322,7 +1322,7 @@ static void *field_new(t_symbol *s)
{
t_field *x = (t_field *)pd_new(field_class);
x->x_s = s;
x->x_canvas = canvas_getcurrent();
x->x_canvas = canvas_getrootfor(canvas_getcurrent());
x->x_template = NULL;
outlet_new(&x->x_obj, &s_list);
return (x);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment