Remove extra new line if file has low entropy

This commit is contained in:
WerWolv 2020-11-12 12:01:13 +01:00
parent 5ba3badcbf
commit 6512d22981
1 changed files with 3 additions and 3 deletions

View File

@ -106,10 +106,10 @@ namespace hex {
ImGui::LabelText("Average entropy", "%.8f", this->m_averageEntropy); ImGui::LabelText("Average entropy", "%.8f", this->m_averageEntropy);
ImGui::LabelText("Highest entropy block", "%.8f", this->m_highestBlockEntropy); ImGui::LabelText("Highest entropy block", "%.8f", this->m_highestBlockEntropy);
ImGui::NewLine(); if (this->m_averageEntropy > 0.83 && this->m_highestBlockEntropy > 0.9) {
ImGui::NewLine();
if (this->m_averageEntropy > 0.83 && this->m_highestBlockEntropy > 0.9)
ImGui::TextColored(ImVec4(0.92F, 0.25F, 0.2F, 1.0F), "This data is most likely encrypted or compressed!"); ImGui::TextColored(ImVec4(0.92F, 0.25F, 0.2F, 1.0F), "This data is most likely encrypted or compressed!");
}
ImGui::NewLine(); ImGui::NewLine();
ImGui::Separator(); ImGui::Separator();