From f338768b2e00672f8ad61ac2b18dc83296962395 Mon Sep 17 00:00:00 2001 From: Ivica Ico Bukvic <ico@monsoon.(none)> Date: Thu, 4 Oct 2012 11:18:32 -0400 Subject: [PATCH] fixed bug where contents were not properly reselected after being changed --- src/g_scalar.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/g_scalar.c b/src/g_scalar.c index 893f13502..3969faafa 100644 --- a/src/g_scalar.c +++ b/src/g_scalar.c @@ -374,6 +374,10 @@ static void scalar_doredraw(t_gobj *client, t_glist *glist) { scalar_vis(client, glist, 0); scalar_vis(client, 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 scalar_redraw(t_scalar *x, t_glist *glist) @@ -416,6 +420,7 @@ int scalar_doclick(t_word *data, t_template *template, t_scalar *sc, static int scalar_click(t_gobj *z, struct _glist *owner, int xpix, int ypix, int shift, int alt, int dbl, int doit) { + //fprintf(stderr,"scalar_click\n"); t_scalar *x = (t_scalar *)z; t_template *template = template_findbyname(x->sc_template); return (scalar_doclick(x->sc_vec, template, x, 0, -- GitLab