Check if m_peakSum is less than or equal to 0 again (#7146)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user