From 781d1bc4ab8fc9fa55485d3c35bb1ba7fd6774c3 Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Fri, 2 Jan 2009 19:40:36 +0000 Subject: release 0.42-0 svn path=/trunk/; revision=10471 --- pd/src/x_gui.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pd/src/x_gui.c') diff --git a/pd/src/x_gui.c b/pd/src/x_gui.c index bcc6ec8b..7cc23d26 100644 --- a/pd/src/x_gui.c +++ b/pd/src/x_gui.c @@ -233,6 +233,7 @@ static t_class *savepanel_class; typedef struct _savepanel { t_object x_obj; + t_canvas *x_canvas; t_symbol *x_s; } t_savepanel; @@ -242,6 +243,7 @@ static void *savepanel_new( void) t_savepanel *x = (t_savepanel *)pd_new(savepanel_class); sprintf(buf, "d%lx", (t_int)x); x->x_s = gensym(buf); + x->x_canvas = canvas_getcurrent(); pd_bind(&x->x_obj.ob_pd, x->x_s); outlet_new(&x->x_obj, &s_symbol); return (x); -- cgit v1.2.1