Skip to content

Commit

Permalink
Check if m_peakSum is less than or equal to 0 again (#7146)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakertooth authored Mar 16, 2024
1 parent 04ecf73 commit b9ebc24
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/Eq/EqSpectrumView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9ebc24

Please sign in to comment.