ui: Fixed indentation of sealed patterns in pattern data view

This commit is contained in:
WerWolv
2022-09-07 22:21:44 +02:00
parent 2fbb351314
commit 7a4040f6ec
2 changed files with 4 additions and 2 deletions

View File

@@ -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