1
0
mirror of synced 2024-11-25 00:00:27 +01:00

fix: Bad formatting of array chunks in pattern data view

This commit is contained in:
WerWolv 2023-06-06 10:06:54 +02:00
parent b4ac46f719
commit 48022bc295

View File

@ -852,6 +852,7 @@ namespace hex::plugin::builtin::ui {
ImGui::TableNextRow();
ImGui::TableNextColumn();
ImGui::TableNextColumn();
chunkOpen = highlightWhenSelected(startOffset, ((endOffset + endSize) - startOffset) - 1, [&]{
return ImGui::TreeNodeEx(hex::format("{0}[{1} ... {2}]", this->m_treeStyle == TreeStyle::Flattened ? pattern.getDisplayName().c_str() : "", i, endIndex - 1).c_str(), ImGuiTreeNodeFlags_SpanFullWidth);