From 2ed6d1419f5d06de3ec414d99fcd5fb75005aaa6 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Mon, 21 Nov 2005 16:47:24 +0000 Subject: fixed crash with empty list svn path=/trunk/externals/unauthorized/; revision=4007 --- scrolllist/scrolllist.c | 1 + 1 file changed, 1 insertion(+) (limited to 'scrolllist') 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); -- cgit v1.2.1