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;
|
||||
|
||||
|
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user