From ea52f5938bb4367dcd4bf7c7826a7abff92a854c Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Mon, 9 Oct 2006 04:36:12 +0000 Subject: bugfixes... pd 0.40-1. svn path=/trunk/; revision=6082 --- pd/src/g_template.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'pd/src/g_template.c') diff --git a/pd/src/g_template.c b/pd/src/g_template.c index 2ee67196..3d00b5dd 100644 --- a/pd/src/g_template.c +++ b/pd/src/g_template.c @@ -1285,8 +1285,11 @@ static int curve_click(t_gobj *z, t_glist *glist, curve_motion_wp = data; curve_motion_field = 2*bestn; curve_motion_template = template; - gpointer_setglist(&curve_motion_gpointer, curve_motion_glist, - curve_motion_scalar); + if (curve_motion_scalar) + gpointer_setglist(&curve_motion_gpointer, curve_motion_glist, + curve_motion_scalar); + else gpointer_setarray(&curve_motion_gpointer, + curve_motion_array, curve_motion_wp); glist_grab(glist, z, curve_motion, 0, xpix, ypix); } return (1); @@ -2268,9 +2271,12 @@ static int drawnumber_click(t_gobj *z, t_glist *glist, drawnumber_motion_ycumulative = fielddesc_getfloat(&x->x_value, template, data, 0); drawnumber_motion_symbol = ((x->x_flags & DRAW_SYMBOL) != 0); - gpointer_setglist(&drawnumber_motion_gpointer, - drawnumber_motion_glist, drawnumber_motion_scalar); - glist_grab(glist, z, drawnumber_motion, drawnumber_key, + if (drawnumber_motion_scalar) + gpointer_setglist(&drawnumber_motion_gpointer, + drawnumber_motion_glist, drawnumber_motion_scalar); + else gpointer_setarray(&drawnumber_motion_gpointer, + drawnumber_motion_array, drawnumber_motion_wp); + glist_grab(glist, z, drawnumber_motion, drawnumber_key, xpix, ypix); } return (1); -- cgit v1.2.1