diff --git a/source/views/view_hexeditor.cpp b/source/views/view_hexeditor.cpp index 8605e773d..6299b8b26 100644 --- a/source/views/view_hexeditor.cpp +++ b/source/views/view_hexeditor.cpp @@ -140,11 +140,12 @@ namespace hex { return; provider->setCurrentPage(page.value()); - this->m_memoryEditor.GotoAddrAndHighlight(region.address, region.address + region.size - 1); + u64 start = region.address + provider->getBaseAddress(); + this->m_memoryEditor.GotoAddrAndHighlight(start, start + region.size - 1); EventManager::post(region); }); - EventManager::subscribe(this, [this]() { + EventManager::subscribe(this, []() { EventManager::post(ProjectFile::getFilePath()); });