From becf4c663ce4ccb6f74264152cf093775e35b309 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Wed, 27 Mar 2013 18:04:21 -0400
Subject: [PATCH] fixed text not getting displaced properly while dragging a
 scalar (due to incomplete accelerated displace implementation)

---
 pd/src/g_template.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pd/src/g_template.c b/pd/src/g_template.c
index cb3c5735e..3414b9b44 100644
--- a/pd/src/g_template.c
+++ b/pd/src/g_template.c
@@ -2146,8 +2146,8 @@ static void drawnumber_vis(t_gobj *z, t_glist *glist,
                 glist_getcanvas(glist), xloc, yloc, colorstring, buf);
         sys_vgui(" -font {{%s} -%d %s}", sys_font,
 				 sys_hostfontsize(glist_getfont(glist)), sys_fontweight);
-        sys_vgui(" -tags .x%lx.x%lx.drawnumber%lx\n", 
-			glist_getcanvas(glist), glist, data);
+        sys_vgui(" -tags {.x%lx.x%lx.drawnumber%lx %lx}\n", 
+			glist_getcanvas(glist), glist, data, data);
     }
     else sys_vgui(".x%lx.c delete .x%lx.x%lx.drawnumber%lx\n", glist_getcanvas(glist), 
 		glist_getcanvas(glist), glist, data);
-- 
GitLab