From b9ebc24e13893ed83e87eac3647b52408e7cedca Mon Sep 17 00:00:00 2001 From: saker Date: Fri, 15 Mar 2024 21:40:15 -0400 Subject: [PATCH] Check if `m_peakSum` is less than or equal to 0 again (#7146) --- plugins/Eq/EqSpectrumView.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/Eq/EqSpectrumView.cpp b/plugins/Eq/EqSpectrumView.cpp index 35eb90dc0..540450883 100644 --- a/plugins/Eq/EqSpectrumView.cpp +++ b/plugins/Eq/EqSpectrumView.cpp @@ -209,11 +209,7 @@ EqSpectrumView::EqSpectrumView(EqAnalyser *b, QWidget *_parent) : void EqSpectrumView::paintEvent(QPaintEvent *event) { const float energy = m_analyser->getEnergy(); - if (energy <= 0.) - { - // If there is no energy in the signal we don't need to draw anything - return; - } + if (energy <= 0. && m_peakSum <= 0) { return; } const int fh = height(); const int LOWER_Y = -36; // dB