midi cue editor: Trigger::current_pos() is relative to the region start, so fix playhead position

This commit is contained in:
Paul Davis 2024-11-25 21:37:31 -07:00
parent ecd3cf8766
commit bbdc87b6fa

View File

@ -371,7 +371,7 @@ MidiCueEditor::maybe_update ()
_playhead_cursor->set_position (0);
} else {
if (trigger->active ()) {
_playhead_cursor->set_position (trigger->current_pos().samples());
_playhead_cursor->set_position (trigger->current_pos().samples() + trigger->the_region()->start().samples());
} else {
_playhead_cursor->set_position (0);
}