From ce8c64a679a81847effc78f8cac1f9695c117096 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 7 Oct 2022 16:18:09 +0200 Subject: [PATCH] ui: Make sure ASCII cell content in hex editor is always centered --- plugins/builtin/source/content/views/view_hex_editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/builtin/source/content/views/view_hex_editor.cpp b/plugins/builtin/source/content/views/view_hex_editor.cpp index 84b53d171..1921dd435 100644 --- a/plugins/builtin/source/content/views/view_hex_editor.cpp +++ b/plugins/builtin/source/content/views/view_hex_editor.cpp @@ -941,6 +941,7 @@ namespace hex::plugin::builtin { this->drawSelectionFrame(x, y, byteAddress, 1, cellStartPos, cellSize); } + ImGui::SetCursorPosX(ImGui::GetCursorPosX() + this->m_characterCellPadding / 2); if (!isCurrRegionValid(byteAddress)) ImGui::TextFormatted("?"); else if (std::isprint(bytes[x]))