aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/iemlib2/parentdollarzero.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iemlib2/parentdollarzero.c b/src/iemlib2/parentdollarzero.c
index 477c2c5..e680f4c 100644
--- a/src/iemlib2/parentdollarzero.c
+++ b/src/iemlib2/parentdollarzero.c
@@ -40,7 +40,7 @@ static void *parentdollarzero_new(void)
t_glist *glist = (t_glist *)canvas_getcurrent();
t_canvas *this_canvas = glist_getcanvas(glist);
- x->x_is_there_a_parent = (unsigned int)this_canvas->gl_owner;
+ x->x_is_there_a_parent = (unsigned int)(0!=this_canvas->gl_owner);
if(x->x_is_there_a_parent)
x->s_parent_unique = canvas_realizedollar((t_canvas *)this_canvas->gl_owner, gensym("$0"));