From 5b2d65ab3aee2fae9ba7404a046eeec55aa3c62b Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Sun, 7 Jun 2020 14:44:17 -0400
Subject: [PATCH] Fixed bug where GOP patches inside a GOP got highlighted when
 the parent GOP was selected. By default no subpatches or objects should be
 visibly highlighted. This should close issue #623.

---
 pd/src/g_graph.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pd/src/g_graph.c b/pd/src/g_graph.c
index dfbf6739c..9767ce1c0 100644
--- a/pd/src/g_graph.c
+++ b/pd/src/g_graph.c
@@ -905,7 +905,8 @@ static void graph_vis(t_gobj *gr, t_glist *parent_glist, int vis)
         ypix = text_ypix(&x->gl_obj, parent_glist);
         gui_vmess("gui_gobj_new", "xssiii",
             glist_getcanvas(x->gl_owner),
-            tag, "graph", xpix, ypix, 1);
+            tag, "graph", xpix, ypix,
+            parent_glist == glist_getcanvas(x->gl_owner) ? 1 : 0);
         if (canvas_showtext(x))
             rtext_draw(glist_findrtext(parent_glist, &x->gl_obj));
     }
-- 
GitLab