1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: Hex editor selection not working correctly when setting base address

This commit is contained in:
WerWolv 2022-07-23 20:46:20 +02:00
parent 71a7ae70d0
commit c618eec843
2 changed files with 4 additions and 2 deletions

View File

@ -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;