From 6512d22981de0547e44a6f90e31376872b57477a Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 12 Nov 2020 12:01:13 +0100 Subject: [PATCH] Remove extra new line if file has low entropy --- source/views/view_information.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/views/view_information.cpp b/source/views/view_information.cpp index 40174f5ab..2ca7b3d96 100644 --- a/source/views/view_information.cpp +++ b/source/views/view_information.cpp @@ -106,10 +106,10 @@ namespace hex { ImGui::LabelText("Average entropy", "%.8f", this->m_averageEntropy); ImGui::LabelText("Highest entropy block", "%.8f", this->m_highestBlockEntropy); - ImGui::NewLine(); - - if (this->m_averageEntropy > 0.83 && this->m_highestBlockEntropy > 0.9) + if (this->m_averageEntropy > 0.83 && this->m_highestBlockEntropy > 0.9) { + ImGui::NewLine(); ImGui::TextColored(ImVec4(0.92F, 0.25F, 0.2F, 1.0F), "This data is most likely encrypted or compressed!"); + } ImGui::NewLine(); ImGui::Separator();