From e2bfd26bb3484efbab5c3e01edd287485d1fe10d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 28 May 2022 12:56:26 +0200 Subject: [PATCH] fix: Bookmark menu entry causing wrong region to be marked --- plugins/builtin/source/content/main_menu_items.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/main_menu_items.cpp b/plugins/builtin/source/content/main_menu_items.cpp index a4c877067..fedfae680 100644 --- a/plugins/builtin/source/content/main_menu_items.cpp +++ b/plugins/builtin/source/content/main_menu_items.cpp @@ -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, {}, {}); } });