1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 16:49:41 +02:00

Bug 1766 - Invalid check for unsupported Nyquist plug-in version

Issue/fix by David Binderman.
This commit is contained in:
James Crook 2017-11-04 17:16:34 +00:00
parent b48c6b0fd6
commit 7c49019669

View File

@ -1591,7 +1591,7 @@ void NyquistEffect::Parse(const wxString &line)
if (len >= 2 && tokens[0] == wxT("version")) {
long v;
tokens[1].ToLong(&v);
if (v < 1 && v > 4) {
if (v < 1 || v > 4) {
// This is an unsupported plug-in version
mOK = false;
return;