mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-08 14:13:57 +01:00
Small fix to envelope operations in Equalization user interface
This commit is contained in:
@@ -1671,9 +1671,10 @@ void EffectEqualization::setCurve(int currentCurve)
|
||||
value = mCurves[currentCurve].points[pointCount].dB;
|
||||
if(when <= 1) {
|
||||
env->InsertOrReplace(when, value);
|
||||
if (when == 1)
|
||||
break;
|
||||
}
|
||||
else {
|
||||
// There are more points at higher freqs, so interpolate next one then stop.
|
||||
when = 1.0;
|
||||
double lastF = mCurves[currentCurve].points[pointCount-1].Freq;
|
||||
double nextF = mCurves[currentCurve].points[pointCount].Freq;
|
||||
|
||||
Reference in New Issue
Block a user