Commit 2588949e authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix for using [field] inside a subpatch

parent bb8ff4ef
...@@ -1322,7 +1322,7 @@ static void *field_new(t_symbol *s) ...@@ -1322,7 +1322,7 @@ static void *field_new(t_symbol *s)
{ {
t_field *x = (t_field *)pd_new(field_class); t_field *x = (t_field *)pd_new(field_class);
x->x_s = s; x->x_s = s;
x->x_canvas = canvas_getcurrent(); x->x_canvas = canvas_getrootfor(canvas_getcurrent());
x->x_template = NULL; x->x_template = NULL;
outlet_new(&x->x_obj, &s_list); outlet_new(&x->x_obj, &s_list);
return (x); return (x);
......
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