From 60f334b5eae28a17842b1ca70d99b403c64bf86d Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Fri, 2 Aug 2013 22:24:31 -0400 Subject: [PATCH] fixed redrawing logic of nlets on graphs under certain circumstances --- pd/src/g_graph.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c index b4d0a032d..a1cef10fc 100644 --- a/pd/src/g_graph.c +++ b/pd/src/g_graph.c @@ -359,6 +359,7 @@ void glist_free(t_glist *x) t_inlet *canvas_addinlet(t_canvas *x, t_pd *who, t_symbol *s) { + //fprintf(stderr,"canvas_addinlet %d %lx %d\n", x->gl_loading, x->gl_owner, glist_isvisible(x->gl_owner)); t_inlet *ip = inlet_new(&x->gl_obj, who, s, 0); if (!x->gl_loading && x->gl_owner && glist_isvisible(x->gl_owner)) { @@ -758,11 +759,11 @@ void glist_redraw(t_glist *x) canvas_drawredrect(x, 1); } } - if (x->gl_owner && glist_isvisible(x->gl_owner)) - { - graph_vis(&x->gl_gobj, x->gl_owner, 0); - graph_vis(&x->gl_gobj, x->gl_owner, 1); - } + } + if (x->gl_owner && glist_isvisible(x->gl_owner)) + { + graph_vis(&x->gl_gobj, x->gl_owner, 0); + graph_vis(&x->gl_gobj, x->gl_owner, 1); } } -- GitLab