From 75011fbdfe74cd96bed818c22bdadd818bd4f612 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@vt.edu> Date: Wed, 23 Oct 2013 23:23:45 -0400 Subject: [PATCH] further cleaned-up ggee/image selection logic (now the selection does not incorrectly pick up on the parent GOP selection, so that when opening subpatcher it does not show up as selected --- externals/ggee/gui/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/externals/ggee/gui/image.c b/externals/ggee/gui/image.c index acccd2ae4..efdb59297 100644 --- a/externals/ggee/gui/image.c +++ b/externals/ggee/gui/image.c @@ -179,9 +179,9 @@ static void image_select(t_gobj *z, t_glist *glist, int state) { //fprintf(stderr,"image_select %d\n", state); t_image *x = (t_image *)z; - x->x_selected = state; if (state) { if (x->x_glist == glist_getcanvas(glist)) { + x->x_selected = state; if (!x->x_gop_spill && (x->x_img_width + x->x_img_height) >= 2) sys_vgui(".x%x.c create rectangle \ %d %d %d %d -tags %xSEL -outline $select_color\n", -- GitLab