Commit 0e553e9a authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

found hopefully a graceful way to deal with situations where gop...

found hopefully a graceful way to deal with situations where gop abstraction/subpatch is open and we select the gop object on parent patch and therefore all its elements inside it (before it would highlight everything inside the subpatch which is confusing to deal with particularly if the edit mode is disabled)
parent b247e17d
......@@ -1212,7 +1212,7 @@ static void graph_select(t_gobj *z, t_glist *glist, int state)
t_gobj *g;
//fprintf(stderr,"graph_select\n");
if (x->gl_list)
if (x->gl_list && !glist_istoplevel(x))
for (g = x->gl_list; g; g = g->g_next) {
//fprintf(stderr,"shouldvis %d\n",gobj_shouldvis(g, x));
if ((g && gobj_shouldvis(g, x) && (g->g_pd->c_wb->w_displacefnwtag != NULL) || (g && pd_class((t_pd *)g) == garray_class)))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment