1
0
mirror of synced 2024-11-24 15:50:16 +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;

View File

@ -126,7 +126,7 @@ namespace hex::plugin::builtin {
ImGui::PushItemWidth(ImGui::GetContentRegionAvailWidth());
ImGui::InputTextWithHint("##filter", "Filter", this->m_currFilter);
ImGui::PopItemWidth();
ImGui::NewLine();
if (ImGui::BeginChild("##bookmarks")) {