mirror of https://github.com/WerWolv/ImHex.git
fix: Bookmark menu entry causing wrong region to be marked
This commit is contained in:
parent
857aadfa61
commit
e2bfd26bb3
|
@ -257,7 +257,7 @@ namespace hex::plugin::builtin {
|
|||
if (ImGui::MenuItem("hex.builtin.menu.edit.bookmark"_lang, nullptr, false, selection.has_value() && providerValid)) {
|
||||
auto base = provider->getBaseAddress();
|
||||
|
||||
ImHexApi::Bookmarks::add(base + selection->getStartAddress(), selection->getEndAddress(), {}, {});
|
||||
ImHexApi::Bookmarks::add(base + selection->getStartAddress(), selection->size, {}, {});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue