mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
allow a trigger slot to use an empty region
hopefully there are no complications from this :(
This commit is contained in:
parent
9415dad9cc
commit
ef0a8ba524
1 changed files with 5 additions and 1 deletions
|
|
@ -2470,7 +2470,11 @@ MIDITrigger::setup_event_indices ()
|
|||
{
|
||||
RTMidiBufferBeats* rt = rt_midibuffer.load ();
|
||||
|
||||
assert (rt->size() > 0);
|
||||
if (rt->size() == 0) {
|
||||
first_event_index = 0;
|
||||
last_event_index = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
if (rt->size() == 1) {
|
||||
first_event_index = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue