From 29354f0bcbee6f7877b0f1acf2aa29fb1b7005dd Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 2 Aug 2025 17:30:49 +0200 Subject: [PATCH] fix: Hex Editor segment numbers being cut off --- plugins/ui/source/ui/hex_editor.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/ui/source/ui/hex_editor.cpp b/plugins/ui/source/ui/hex_editor.cpp index 430cabbe5..c6664030d 100644 --- a/plugins/ui/source/ui/hex_editor.cpp +++ b/plugins/ui/source/ui/hex_editor.cpp @@ -596,7 +596,10 @@ namespace hex::ui { // Row address column ImGui::TableSetupColumn("hex.ui.common.address"_lang, ImGuiTableColumnFlags_WidthFixed, m_provider == nullptr ? 0 : - CharacterSize.x * fmt::formatted_size("{:08X}: ", ((m_scrollPosition + m_visibleRowCount) * bytesPerRow) + m_provider->getBaseAddress() + m_provider->getCurrentPageAddress()) + CharacterSize.x * std::max( + fmt::formatted_size("{:08X}: ", ((m_scrollPosition + m_visibleRowCount) * bytesPerRow) + m_provider->getBaseAddress() + m_provider->getCurrentPageAddress()), + m_separatorStride == 0 ? 0 : fmt::formatted_size("{} {}", "hex.ui.common.segment"_lang, m_scrollPosition + m_visibleRowCount * bytesPerRow + m_provider->getBaseAddress() + m_provider->getCurrentPageAddress() / m_separatorStride) + ) ); ImGui::TableSetupColumn("");