Skip to content

Commit

Permalink
fix inf in control dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRobotMusic committed Jan 5, 2025
1 parent bd0fc13 commit c64548c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/SlewDistortion/SlewDistortionControlDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ void SlewDistortionControlDialog::paintEvent(QPaintEvent *event)

for (int i = 0; i < 4; ++i)
{
m_lastInPeaks[i] = (inPeak[i] != -1.0f) ? inPeak[i] : m_lastInPeaks[i];
m_lastOutPeaks[i] = (outPeak[i] != -1.0f) ? outPeak[i] : m_lastOutPeaks[i];
m_lastInPeaks[i] = std::max((inPeak[i] != -1.0f) ? inPeak[i] : m_lastInPeaks[i], SLEW_DISTORTION_MIN_FLOOR);
m_lastOutPeaks[i] = std::max((outPeak[i] != -1.0f) ? outPeak[i] : m_lastOutPeaks[i], SLEW_DISTORTION_MIN_FLOOR);
inPeak[i] = outPeak[i] = -1.0f;
}

Expand Down

0 comments on commit c64548c

Please sign in to comment.