From 3573ce583ec0c6de9be296b39df4067fc7fb2d4d Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Thu, 8 Aug 2013 14:01:49 -0400
Subject: [PATCH] fixed regression due to idiotic way how arrays and scalars
 are allowed to spill outside its GOP frame...

---
 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 86adcbc4f..6eb17cdaa 100644
--- a/pd/src/g_editor.c
+++ b/pd/src/g_editor.c
@@ -169,7 +169,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(&glist->gl_pd) != garray_class))
+        glist->gl_owner && (pd_class(&x->g_pd) != scalar_class) && (pd_class(&glist->gl_pd) != garray_class))
     {
         /* if we're graphing-on-parent and the object falls outside the
         graph rectangle, don't draw it. */
-- 
GitLab