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
1 changed files with 1 additions and 1 deletions

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;