mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-11 17:13:37 +02:00
Fix - bandwidth may be zero.
This commit is contained in:
@@ -591,7 +591,7 @@ bool EffectNyquist::Process()
|
||||
centerHz.Printf(wxT("(float %g)"), sqrt(mF0 * mF1));
|
||||
}
|
||||
|
||||
if ((mF0 > 0.0) && (mF1 > mF0)) {
|
||||
if ((mF0 > 0.0) && (mF1 >= mF0)) {
|
||||
bandwidth.Printf(wxT("(float %g)"), log(mF1 / mF0)/log(2.0));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user