ui: Fixed bookmarks displaying too many bytes in some cases

This commit is contained in:
WerWolv 2022-12-25 10:01:39 +01:00
parent df3d5e38ce
commit d463491026
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ namespace hex::plugin::builtin {
size_t byteCount = std::min<size_t>(0x10 - offset, region.size);
ImHexApi::Provider::get()->read(region.address, bytes.data() + offset, byteCount);
for (size_t byte = 0; byte < 0x10; byte++) {
for (size_t byte = 0; byte < (offset % 0x10) + byteCount; byte++) {
if (byte < offset)
ImGui::TextUnformatted(" ");
else