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:
parent
f0184e4e6d
commit
bade953de3
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user