From 41d2bc7fd12aab80c75621ae08dbfbeae6def6ae Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@monsoon.(none)> Date: Thu, 4 Oct 2012 11:17:47 -0400 Subject: [PATCH] fixed bug where contents were not properly reselected after being changed --- src/g_array.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/g_array.c b/src/g_array.c index ed6521fc2..c2fe7a894 100644 --- a/src/g_array.c +++ b/src/g_array.c @@ -770,6 +770,7 @@ static int array_doclick_element(t_array *array, t_glist *glist, t_fielddesc *xfield, t_fielddesc *yfield, t_fielddesc *wfield, int xpix, int ypix, int shift, int alt, int dbl, int doit) { + //fprintf(stderr,"array_doclick_element %d\n", doit); t_canvas *elemtemplatecanvas; t_template *elemtemplate; int elemsize, yonset, wonset, xonset, i, incr, hit; @@ -813,6 +814,7 @@ int array_doclick(t_array *array, t_glist *glist, t_scalar *sc, t_array *ap, t_fielddesc *xfield, t_fielddesc *yfield, t_fielddesc *wfield, int xpix, int ypix, int shift, int alt, int dbl, int doit) { + //fprintf(stderr,"array_doclick %d\n", doit); t_canvas *elemtemplatecanvas; t_template *elemtemplate; int elemsize, yonset, wonset, xonset, i; @@ -1146,6 +1148,10 @@ static void garray_doredraw(t_gobj *client, t_glist *glist) garray_vis(&x->x_gobj, x->x_glist, 0); garray_vis(&x->x_gobj, x->x_glist, 1); } + if (glist_isselected(glist_getcanvas(glist), (t_gobj *)glist)) { + //fprintf(stderr,"yes\n"); + sys_vgui("pdtk_select_all_gop_widgets .x%lx %lx %d\n", glist_getcanvas(glist), glist, 1); + } } void garray_redraw(t_garray *x) -- GitLab