diff options
author | Guenter Geiger <ggeiger@users.sourceforge.net> | 2005-04-26 17:38:29 +0000 |
---|---|---|
committer | Guenter Geiger <ggeiger@users.sourceforge.net> | 2005-04-26 17:38:29 +0000 |
commit | fad1613cd9d067371343b1f4efa23aad50cb9a4a (patch) | |
tree | 0fa5b6d488480a0c3257e0539546cd4c057d6af7 | |
parent | eee4c6f1906ab4bdc33b45fe9a701b107d2f2b73 (diff) |
huh ?, this surely never worked, hope it does now
svn path=/trunk/externals/ggee/; revision=2827
-rw-r--r-- | control/getdir.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/control/getdir.c b/control/getdir.c index 5a13a48..2c621e3 100644 --- a/control/getdir.c +++ b/control/getdir.c @@ -27,10 +27,11 @@ static void getdir_bang(t_getdir *x) { int i = x->x_level; t_canvas* last = x->x_canvas; - do { + + while (i>0) { i--; - last = last->gl_owner; - } while (last && i); + if (last->gl_owner) last = last->gl_owner; + } outlet_symbol(x->x_outlet,canvas_getdir(last)); } |