1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-05 04:25:19 +02:00

Fix text in log viewer disappearing when pressing alt-right

This commit is contained in:
Paul Cercueil 2014-04-17 20:52:41 +02:00
parent b1eedf6992
commit 47b098cce6

View File

@ -144,7 +144,8 @@ void TextDialog::exec() {
if (firstRow + rowsPerPage*2 -1 < text->size()) {
firstRow += rowsPerPage-1;
} else {
firstRow = max(0ul, (unsigned long) (text->size() - rowsPerPage));
firstRow = text->size() < rowsPerPage ?
0 : text->size() - rowsPerPage;
}
break;
case InputManager::SETTINGS: