From 96608ba9edb49b55041f011af7735bdf840964aa Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Thu, 28 Jan 2016 21:14:38 -0500 Subject: [PATCH] use correct glist for is_toplevel argument. This fixes a regression where an [nbx] shows as selected when in a gop. --- pd/src/g_numbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd/src/g_numbox.c b/pd/src/g_numbox.c index 47f4abeb2..d79ba61ed 100644 --- a/pd/src/g_numbox.c +++ b/pd/src/g_numbox.c @@ -170,7 +170,7 @@ static void my_numbox_draw_new(t_my_numbox *x, t_glist *glist) y1, x2 - x1, y2 - y1, - glist_istoplevel(canvas)); + glist_istoplevel(glist)); /* Not sure when it is necessary to hide the frame... perhaps for k12? */ if (!x->x_hide_frame || x->x_hide_frame == 2) -- GitLab