From 7e5df5ced05eddfd99049d168bf73ec3de6e5017 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Sun, 8 Dec 2013 05:13:57 -0500 Subject: [PATCH] *fixed segfault when trying to create an object inside an array GOP due to incorrect check whether the object is an array in shouldvis function that is being called as part of gobj_vis to optimize (re)drawing --- pd/src/g_editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c index 2729372fa..59796b76b 100644 --- a/pd/src/g_editor.c +++ b/pd/src/g_editor.c @@ -152,7 +152,7 @@ int gobj_shouldvis(t_gobj *x, struct _glist *glist) t_object *ob; //fprintf(stderr,"shouldvis %d %d %d %d\n", glist->gl_havewindow, glist->gl_isgraph, glist->gl_goprect, glist->gl_owner != NULL); if (!glist->gl_havewindow && glist->gl_isgraph && glist->gl_goprect && - glist->gl_owner && (pd_class(&x->g_pd) != scalar_class) && (pd_class(&glist->gl_pd) != garray_class)) + glist->gl_owner && (pd_class(&x->g_pd) != scalar_class) && (pd_class(&x->g_pd) != garray_class)) { /* if we're graphing-on-parent and the object falls outside the graph rectangle, don't draw it. */ -- GitLab