fix: Edit -> Create Bookmark shortcut creating bookmark at wrong address

This commit is contained in:
WerWolv
2022-07-23 21:17:17 +02:00
parent c618eec843
commit daffa4e555
2 changed files with 2 additions and 5 deletions

View File

@@ -286,7 +286,7 @@ namespace hex::plugin::builtin {
auto region = ImHexApi::HexEditor::getSelection();
if (region.has_value())
ImHexApi::Bookmarks::add(region->address, region->size, {}, {});
ImHexApi::Bookmarks::add(region->getStartAddress(), region->getSize(), {}, {});
}
}
ImGui::EndDisabled();