From 9e3c6898adb3f273e34fd701f960f2cf1fe7b20b Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 23 Jul 2022 15:21:24 +0200 Subject: [PATCH] fix: Multi-byte hex editor visualizers displaying incorrect bytes --- plugins/builtin/source/content/views/view_hex_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index 463e28252..81276f3f2 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -761,7 +761,7 @@ namespace hex::plugin::builtin { // Draw cell content ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0)); ImGui::PushItemWidth((CharacterSize * this->m_currDataVisualizer->getMaxCharsPerCell()).x); - this->drawCell(byteAddress, &bytes[x], bytesPerCell, cellHovered); + this->drawCell(byteAddress, &bytes[x * bytesPerCell], bytesPerCell, cellHovered); ImGui::PopItemWidth(); ImGui::PopStyleVar();