aboutsummaryrefslogtreecommitdiff
path: root/pd/src/g_graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'pd/src/g_graph.c')
-rw-r--r--pd/src/g_graph.c5
1 files changed, 2 insertions, 3 deletions
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,