Commit cdbcc2ad authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

fix #152: canvas resizing not working

parent fcc3d035
Pipeline #448 failed with stage
in 170 minutes and 13 seconds
......@@ -768,12 +768,12 @@ t_scalehandle *scalehandle_new(t_object *x, t_glist *glist, int scale, t_clickha
h->h_glist = glist;
if (!scale) /* Only bind for labels-- scaling uses pd_vmess in g_editor.c */
{
sprintf(buf, "_l%lx", (int)x);
sprintf(buf, "_l%lx", (long unsigned int)x);
pd_bind((t_pd *)h, h->h_bindsym = gensym(buf));
}
else if (scale && pd_class((t_pd *)x) == my_canvas_class)
{
sprintf(buf, "_s%lx", (int)x);
sprintf(buf, "_s%lx", (long unsigned int)x);
pd_bind((t_pd *)h, h->h_bindsym = gensym(buf));
}
sprintf(h->h_outlinetag, "h%lx", (t_int)h);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment