Commit 6d80f359 authored by ck's avatar ck
Browse files

BinEditor: Fix cursor position label.

It assumed base address zero.
parent a0957225
......@@ -363,8 +363,8 @@ public:
public slots:
void updateCursorPosition(int position) {
m_cursorPositionLabel->setText(m_editor->addressString((uint)position),
m_editor->addressString((uint)m_editor->data().size()));
m_cursorPositionLabel->setText(m_editor->addressString(m_editor->baseAddress() + position),
m_editor->addressString(m_editor->baseAddress() + m_editor->data().size()));
}
private:
......
Markdown is supported
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