diff options
Diffstat (limited to 'apps/gui/bitmap/list.c')
-rw-r--r-- | apps/gui/bitmap/list.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 49479c1cb3..0c38132ece 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c | |||
@@ -740,6 +740,8 @@ unsigned gui_synclist_do_touchscreen(struct gui_synclist * list) | |||
740 | line = (adj_y - y_offset) / line_height; | 740 | line = (adj_y - y_offset) / line_height; |
741 | if (list_display_title(list, screen)) | 741 | if (list_display_title(list, screen)) |
742 | line -= 1; /* adjust for the list title */ | 742 | line -= 1; /* adjust for the list title */ |
743 | if (line >= list->nb_items) | ||
744 | return ACTION_NONE; | ||
743 | list->selected_item = list_start_item+line; | 745 | list->selected_item = list_start_item+line; |
744 | gui_synclist_speak_item(list); | 746 | gui_synclist_speak_item(list); |
745 | } | 747 | } |