From 415f80dc9f2dcbf99c5d427541ea2c6c192c461d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 May 2008 22:00:14 +0000 Subject: [PATCH] Fix out of range MIDI event error detection (duuuhhhhh). git-svn-id: svn://localhost/ardour2/branches/3.0@3364 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/midi_model.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc index 462e7ba012..08fc5179f0 100644 --- a/libs/ardour/midi_model.cc +++ b/libs/ardour/midi_model.cc @@ -102,7 +102,7 @@ MidiModel::const_iterator::const_iterator(const MidiModel& model, double t) assert(x >= 0); - if (y >= i->first.min() || y <= i->first.max()) { + if (y <= i->first.min() || y >= i->first.max()) { cerr << "ERROR: Controller (" << i->first.to_string() << ") value '" << y << "' out of range [" << i->first.min() << "," << i->first.max() << "], event ignored" << endl;