From 6efb16b9040f7ba6db8c60559e0c815d54f05c43 Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Fri, 8 Jul 2005 00:02:45 +0000 Subject: Bug fixes: took out some unwanted "red rectangle" apparitions when making arrays on new canvases; got the array dialog to come back; made graphical updating a bit more reliable. Tested and fixed a couple of problems on Mac and Windoes. svn path=/trunk/; revision=3300 --- pd/src/g_graph.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pd/src/g_graph.c') diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c index 9dae5221..b7b3da72 100644 --- a/pd/src/g_graph.c +++ b/pd/src/g_graph.c @@ -39,7 +39,8 @@ void glist_add(t_glist *x, t_gobj *y) } if (x->gl_editor && (ob = pd_checkobject(&y->g_pd))) rtext_new(x, ob); - if (x->gl_editor && x->gl_isgraph && !x->gl_goprect) + if (x->gl_editor && x->gl_isgraph && !x->gl_goprect + && pd_checkobject(&y->g_pd)) { x->gl_goprect = 1; canvas_drawredrect(x, 1); @@ -1059,8 +1060,6 @@ static int graph_click(t_gobj *z, struct _glist *glist, } } -void garray_properties(t_garray *x); - t_widgetbehavior graph_widgetbehavior = { graph_getrect, -- cgit v1.2.1