fix: Bookmark menu entry causing wrong region to be marked

This commit is contained in:
WerWolv 2022-05-28 12:56:26 +02:00
parent 857aadfa61
commit e2bfd26bb3
1 changed files with 1 additions and 1 deletions

View File

@ -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, {}, {});
}
});