Skip to content

Commit

Permalink
UI|Fixed: List widget's first visible index
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 4, 2012
1 parent 99d31ac commit 0b6d12e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/engine/portable/src/ui_main.c
Expand Up @@ -471,7 +471,7 @@ void UI_SetPage(ui_page_t* page)
dat->first = dat->selection - dat->numvis + 1;
}
// Check that the visible range is ok.
dat->first = MIN_OF(dat->first, dat->count - dat->numvis);
dat->first = MAX_OF(0, MIN_OF(dat->first, dat->count - dat->numvis));
UI_InitColumns(ob);
}
}
Expand Down

0 comments on commit 0b6d12e

Please sign in to comment.