fix: Hex editor selection not working correctly when setting base address
This commit is contained in:
parent
71a7ae70d0
commit
c618eec843
@ -41,7 +41,9 @@ namespace hex::plugin::builtin {
|
||||
if (end == InvalidSelection)
|
||||
end = start;
|
||||
|
||||
const size_t maxAddress = ImHexApi::Provider::get()->getActualSize() - 1;
|
||||
auto provider = ImHexApi::Provider::get();
|
||||
|
||||
const size_t maxAddress = provider->getActualSize() + provider->getBaseAddress() - 1;
|
||||
|
||||
this->m_selectionChanged = this->m_selectionStart != start || this->m_selectionEnd != end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user