Commit b6a14119 authored by Ivica Ico Bukvic's avatar Ivica Ico Bukvic
Browse files

more graceful handling of consistency check

parent 7e67d4b9
......@@ -468,8 +468,10 @@ t_template *template_findbyname(t_symbol *s)
t_canvas *template_findcanvas(t_template *template)
t_gtemplate *gt;
if (!template)
if (!template) {
return (0);
if (!(gt = template->t_list))
return (0);
return (gt->x_owner);
Supports Markdown
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