aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-01-28 18:57:42 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2009-01-28 18:57:42 +0000
commit5853f9ae585dfe47974358e1d6b9a394284000bf (patch)
tree3ef31384860bca8164c78aa9e46255202b66014e /src
parentf9619a1878309581f5bf18fd8c1172b038ef9aee (diff)
avoid double triggering
svn path=/trunk/externals/iem/iemguts/; revision=10668
Diffstat (limited to 'src')
-rw-r--r--src/canvasdelete.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/canvasdelete.c b/src/canvasdelete.c
index f8b38c0..62a9bf6 100644
--- a/src/canvasdelete.c
+++ b/src/canvasdelete.c
@@ -51,6 +51,11 @@ static void canvasdelete_bang(t_canvasdelete *x)
int x1=0, y1=0, width=0, height=0;
t_atom alist[2];
+ if(x->x_clock) {
+ pd_error(x, "deletion already scheduled");
+ return;
+ }
+
if(NULL==x->x_glist || NULL==x->x_gobj)return;
x->x_clock=clock_new(x, (t_method)canvasdelete_doit);