Commit bd82c8f0 authored by ck's avatar ck
Browse files

BinEditor: Properly set cursor position on new data range.

parent d8e7bb9c
...@@ -431,11 +431,7 @@ void BinEditor::setLazyData(quint64 startAddr, int range, int blockSize) ...@@ -431,11 +431,7 @@ void BinEditor::setLazyData(quint64 startAddr, int range, int blockSize)
init(); init();
m_cursorPosition = startAddr - m_baseAddr; setCursorPosition(startAddr - m_baseAddr);
verticalScrollBar()->setValue(m_cursorPosition / 16);
emit cursorPositionChanged(m_cursorPosition);
viewport()->update();
} }
void BinEditor::resizeEvent(QResizeEvent *) void BinEditor::resizeEvent(QResizeEvent *)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment