From e0b957fd5185bd957a6bd78c8d897255c1dc87e8 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 24 Jun 2008 08:09:35 +0000 Subject: quick fix for FS#8729 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17780 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/list.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/gui/list.c') diff --git a/apps/gui/list.c b/apps/gui/list.c index a3df4a2f2c..720c61b393 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -271,6 +271,8 @@ static void gui_list_put_selection_on_screen(struct gui_synclist * gui_list, { if (gui_list->start_item[screen] > gui_list->selected_item) gui_list->start_item[screen] = (gui_list->selected_item/nb_lines)*nb_lines; + if (gui_list->nb_items <= nb_lines) + gui_list->start_item[screen] = 0; } else { -- cgit v1.2.3