mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 07:26:32 +01:00
prevent crash when timing issues lead to a playing trigger, no region, during Pianoroll::maybe_update()
This commit is contained in:
parent
711b12035e
commit
2d79195264
1 changed files with 3 additions and 1 deletions
|
|
@ -728,7 +728,9 @@ Pianoroll::maybe_update ()
|
|||
|
||||
} else {
|
||||
if (playing_trigger->active ()) {
|
||||
_playhead_cursor->set_position (playing_trigger->current_pos().samples() + playing_trigger->the_region()->start().samples());
|
||||
if (playing_trigger->the_region()) {
|
||||
_playhead_cursor->set_position (playing_trigger->current_pos().samples() + playing_trigger->the_region()->start().samples());
|
||||
}
|
||||
} else {
|
||||
_playhead_cursor->set_position (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue