13
0

Fix crash on verbose note text in regions with no patch changes.

... I think.  Not sure precisely, conditions were fuzzy, I just tortured my
mouse button until I could reproduce it.


git-svn-id: svn://localhost/ardour2/branches/3.0@13921 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2013-01-20 04:52:42 +00:00
parent f0184e4e6d
commit bade953de3

View File

@ -1865,7 +1865,7 @@ MidiRegionView::get_patch_key_at (double time, uint8_t channel, MIDI::Name::Patc
--i;
}
if (patch_applies(*i, time, channel)) {
if (i != _model->patch_changes().end() && patch_applies(*i, time, channel)) {
key.bank_number = (*i)->bank();
key.program_number = (*i)->program ();
} else {