From bbdc87b6fad7e6adfa53b3bd547531d99669f15a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 25 Nov 2024 21:37:31 -0700 Subject: [PATCH] midi cue editor: Trigger::current_pos() is relative to the region start, so fix playhead position --- gtk2_ardour/midi_cue_editor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/midi_cue_editor.cc b/gtk2_ardour/midi_cue_editor.cc index ffc5565bcb..5280787195 100644 --- a/gtk2_ardour/midi_cue_editor.cc +++ b/gtk2_ardour/midi_cue_editor.cc @@ -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); }