diff options
author | David Robillard <d@drobilla.net> | 2008-05-16 22:00:14 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-16 22:00:14 +0000 |
commit | 415f80dc9f2dcbf99c5d427541ea2c6c192c461d (patch) | |
tree | fcfc8f51066144d199b19c0e8663dbab5f370e9c /libs | |
parent | 0c25b2aa8e173a96060adc52a34ecd43da79c305 (diff) |
Fix out of range MIDI event error detection (duuuhhhhh).
git-svn-id: svn://localhost/ardour2/branches/3.0@3364 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/midi_model.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |