From 5d526a8009c79766a1b6a35a040c50e1e71ae0a3 Mon Sep 17 00:00:00 2001 From: "stevethefiddle@gmail.com" Date: Fri, 19 Dec 2014 16:18:21 +0000 Subject: [PATCH] Fix - bandwidth may be zero. --- src/effects/nyquist/Nyquist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/nyquist/Nyquist.cpp b/src/effects/nyquist/Nyquist.cpp index 2ef642308..2beb3ae9e 100644 --- a/src/effects/nyquist/Nyquist.cpp +++ b/src/effects/nyquist/Nyquist.cpp @@ -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)); }