From e467e0c01463ccdc27668133162032bf15857046 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 11 Mar 2024 14:45:07 -0500 Subject: [PATCH] in the case of nudging (1) CP, locate the phead so we can see its position --- gtk2_ardour/editor_ops.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 0c52be4450..831d40903b 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -507,6 +507,10 @@ Editor::nudge_forward (bool next, bool force_playhead) alist->modify (m, p + distance, (*m)->value); alist->thaw (); _session->add_command (new MementoCommand (new SimpleMementoCommandBinder (*alist.get()), 0, &alist->get_state())); + + if (selection->points.size()==1) { + _session->request_locate (timepos_t (p + distance).samples()); + } } if (in_command) { commit_reversible_command (); @@ -633,6 +637,10 @@ Editor::nudge_backward (bool next, bool force_playhead) alist->modify (m, max (timepos_t (p.time_domain()), p.earlier (distance)), (*m)->value); alist->thaw (); _session->add_command (new MementoCommand (new SimpleMementoCommandBinder (*alist.get()), 0, &alist->get_state())); + + if (selection->points.size()==1) { + _session->request_locate (timepos_t (p.earlier (distance)).samples()); + } } if (in_command) { commit_reversible_command ();