Commit 79494149 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix #431: stale pointer for scalar events in nested gop

parent 9484aff7
Pipeline #1436 passed with stage
in 380 minutes and 58 seconds
...@@ -948,6 +948,17 @@ static void graph_vis(t_gobj *gr, t_glist *parent_glist, int vis) ...@@ -948,6 +948,17 @@ static void graph_vis(t_gobj *gr, t_glist *parent_glist, int vis)
} }
else if (gobj_shouldvis(gr, parent_glist)) else if (gobj_shouldvis(gr, parent_glist))
{ {
/* erase contents of glist. We need to do this because
scalar_vis is currently using pd_bind/unbind to handle
scalar events. */
for (g = x->gl_list; g; g = g->g_next)
{
gop_redraw = 1;
//fprintf(stderr,"drawing gop objects\n");
gobj_vis(g, x, 0);
//fprintf(stderr,"done\n");
gop_redraw = 0;
}
gui_vmess("gui_gobj_erase", "xs", gui_vmess("gui_gobj_erase", "xs",
glist_getcanvas(x->gl_owner), glist_getcanvas(x->gl_owner),
tag); tag);
......
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