[Listview] Check max_rows on nav_right/left.

Fixes: #1297
This commit is contained in:
Dave Davenport 2021-04-10 22:26:37 +02:00
parent 44d8320e5c
commit 8ac9890e8b
1 changed files with 3 additions and 0 deletions

View File

@ -770,6 +770,9 @@ void listview_nav_right ( listview *lv )
if ( lv == NULL ) {
return;
}
if ( lv->max_rows == 0 ) {
return;
}
if ( lv->type == BARVIEW ) {
listview_nav_down_int ( lv );
return;