patterns: Fixed inlined variable drawing

This commit is contained in:
WerWolv 2021-09-29 20:51:57 +02:00
parent 334ba3ede2
commit a9e3db0464
1 changed files with 4 additions and 4 deletions

View File

@ -675,7 +675,7 @@ namespace hex::pl {
return;
bool open = true;
if (this->isInlined()) {
if (!this->isInlined()) {
ImGui::TableNextRow();
ImGui::TableNextColumn();
open = ImGui::TreeNodeEx(this->getDisplayName().c_str(), ImGuiTreeNodeFlags_SpanFullWidth);
@ -795,7 +795,7 @@ namespace hex::pl {
bool open = true;
if (this->isInlined()) {
if (!this->isInlined()) {
ImGui::TableNextRow();
ImGui::TableNextColumn();
open = ImGui::TreeNodeEx(this->getDisplayName().c_str(), ImGuiTreeNodeFlags_SpanFullWidth);
@ -1075,7 +1075,7 @@ namespace hex::pl {
void createEntry(prv::Provider* &provider) override {
bool open = true;
if (this->isInlined()) {
if (!this->isInlined()) {
ImGui::TableNextRow();
ImGui::TableNextColumn();
open = ImGui::TreeNodeEx(this->getDisplayName().c_str(), ImGuiTreeNodeFlags_SpanFullWidth);
@ -1369,7 +1369,7 @@ namespace hex::pl {
std::reverse(value.begin(), value.end());
bool open = true;
if (this->isInlined()) {
if (!this->isInlined()) {
ImGui::TableNextRow();
ImGui::TableNextColumn();
open = ImGui::TreeNodeEx(this->getDisplayName().c_str(), ImGuiTreeNodeFlags_SpanFullWidth);