diff options
author | N.N. <sevyves@users.sourceforge.net> | 2005-11-21 16:47:24 +0000 |
---|---|---|
committer | N.N. <sevyves@users.sourceforge.net> | 2005-11-21 16:47:24 +0000 |
commit | 2ed6d1419f5d06de3ec414d99fcd5fb75005aaa6 (patch) | |
tree | 878bbc21e4a105ff7d429904da860f28ccffa372 | |
parent | dfab85572e4e47a1579efc0448c3b2fef080fe9f (diff) |
fixed crash with empty list
svn path=/trunk/externals/unauthorized/; revision=4007
-rwxr-xr-x | scrolllist/scrolllist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scrolllist/scrolllist.c b/scrolllist/scrolllist.c index 5be3484..412f062 100755 --- a/scrolllist/scrolllist.c +++ b/scrolllist/scrolllist.c @@ -773,6 +773,7 @@ static void scrolllist_seek(t_scrolllist *x, t_floatarg fseeked) post( "scrolllist : wrong searched file : %f", fseeked ); return; } + if ( x->x_nitems == 0 ) return; iout = (t_int)fseeked % (x->x_nitems); SYS_VGUI5(".x%x.c itemconfigure %xITEM%d -fill %s\n", canvas, x, x->x_itemselected, x->x_fgcolor); |