Fix Hexdump Scroll Up Loading

This commit is contained in:
Florian Märkl 2018-04-13 11:29:11 +02:00
parent 839ec9fffe
commit 2af51a1af0

View File

@ -838,8 +838,8 @@ void HexdumpWidget::scrollChanged()
int firstLine = getDisplayedLined(ui->hexHexText);
if (firstLine < (bufferLines / 2)) {
auto hexdump = fetchHexdump(first_loaded_address, bufferLines);
first_loaded_address -= bufferLines * cols;
auto hexdump = fetchHexdump(first_loaded_address, bufferLines);
prependWithoutScroll(ui->hexOffsetText, hexdump[0]);
prependWithoutScroll(ui->hexHexText, hexdump[1]);
prependWithoutScroll(ui->hexASCIIText, hexdump[2]);