mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-25 16:17:10 +02:00
Fix text in log viewer disappearing when pressing alt-right
This commit is contained in:
parent
b1eedf6992
commit
47b098cce6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user