Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
David MacDonald
purr-data
Commits
672087ce
Commit
672087ce
authored
Sep 18, 2015
by
Jonathan Wilkes
Browse files
Fix regression with [draw group]
parent
6af0938a
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/g_template.c
View file @
672087ce
...
...
@@ -7625,11 +7625,14 @@ t_canvas *canvas_templatecanvas_forgroup(t_canvas *c)
t_binbuf *b = c->gl_obj.te_binbuf;
if (!b)
{
return c;
}
t_atom *argv = binbuf_getvec(c->gl_obj.te_binbuf);
if (argv[0].a_type == A_SYMBOL &&
argv[0].a_w.w_symbol == gensym("group"))
return c;
}
t_atom *argv = binbuf_getvec(b);
if (binbuf_getnatom(b) > 1 &&
argv[0].a_type == A_SYMBOL &&
argv[0].a_w.w_symbol == gensym("draw") &&
argv[1].a_type == A_SYMBOL &&
argv[1].a_w.w_symbol == gensym("group"))
{
templatecanvas = canvas_templatecanvas_forgroup(c->gl_owner);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment