aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-07-23 10:17:37 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-07-23 10:17:37 +0000
commit925c6113a59ec5f139de2b663f57ecfc049142fc (patch)
tree53890755c4dbe90b3035e0f7d528380038621c28 /src
parent9f6788bcefbb20328794eca9aba8be45542b8b92 (diff)
added x_object for similicity
svn path=/trunk/externals/iem/iemguts/; revision=10210
Diffstat (limited to 'src')
-rw-r--r--src/canvasconnection.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/canvasconnection.c b/src/canvasconnection.c
index af64ce9..58f881a 100644
--- a/src/canvasconnection.c
+++ b/src/canvasconnection.c
@@ -103,16 +103,18 @@ static void *canvasconnection_new(t_floatarg f)
if(depth<0)depth=0;
x->x_parent=0;
+ x->x_object=0;
while(depth && canvas) {
canvas=canvas->gl_owner;
depth--;
}
- x->x_object = pd_checkobject((t_pd*)canvas);
- if(canvas)
+ if(canvas) {
+ x->x_object = pd_checkobject((t_pd*)canvas);
x->x_parent = canvas->gl_owner;
+ }
x->x_out=outlet_new(&x->x_obj, 0);