summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/list.c2
1 files changed, 2 insertions, 0 deletions
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,
271 { 271 {
272 if (gui_list->start_item[screen] > gui_list->selected_item) 272 if (gui_list->start_item[screen] > gui_list->selected_item)
273 gui_list->start_item[screen] = (gui_list->selected_item/nb_lines)*nb_lines; 273 gui_list->start_item[screen] = (gui_list->selected_item/nb_lines)*nb_lines;
274 if (gui_list->nb_items <= nb_lines)
275 gui_list->start_item[screen] = 0;
274 } 276 }
275 else 277 else
276 { 278 {