From 7a4040f6ecf575037af45410c7f69bdf58b14746 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 7 Sep 2022 22:21:44 +0200 Subject: [PATCH] ui: Fixed indentation of sealed patterns in pattern data view --- lib/external/pattern_language | 2 +- plugins/builtin/source/pattern_drawer.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/external/pattern_language b/lib/external/pattern_language index e4d95c960..82fa40f9f 160000 --- a/lib/external/pattern_language +++ b/lib/external/pattern_language @@ -1 +1 @@ -Subproject commit e4d95c96020ff80884cfeffe30fec472cfdbe5a2 +Subproject commit 82fa40f9f8395c1b9e9c364841c8d3f8735b58c7 diff --git a/plugins/builtin/source/pattern_drawer.cpp b/plugins/builtin/source/pattern_drawer.cpp index b96f9ab90..7b254b650 100644 --- a/plugins/builtin/source/pattern_drawer.cpp +++ b/plugins/builtin/source/pattern_drawer.cpp @@ -360,7 +360,9 @@ namespace hex { bool PatternDrawer::createTreeNode(const pl::ptrn::Pattern& pattern) const { if (pattern.isSealed()) { - ImGui::Selectable(pattern.getDisplayName().c_str(), false, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowItemOverlap); + ImGui::Indent(); + ImGui::TextUnformatted(pattern.getDisplayName().c_str()); + ImGui::Unindent(); return false; } else