ui: Display correct offsets in hex editor header when base address is not aligned

This commit is contained in:
WerWolv
2021-05-23 22:52:09 +02:00
parent 143cdbd44b
commit 1aa21b8a2d
2 changed files with 2 additions and 2 deletions

View File

@@ -144,7 +144,7 @@ namespace hex {
u64 start = region.address;
this->m_memoryEditor.GotoAddrAndSelect(start - provider->getBaseAddress(), start + region.size - provider->getBaseAddress() - 1);
}
EventManager::post<EventRegionSelected>(Region { this->m_memoryEditor.DataPreviewAddr, (this->m_memoryEditor.DataPreviewAddrEnd - this->m_memoryEditor.DataPreviewAddr) + 1});
});