From 91f50b8a06ff20caf35db65870d0ed2e1b3e5f59 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 4 Oct 2023 18:49:30 -0600 Subject: [PATCH] in insert time, don't differentiate between audio/music time markers --- gtk2_ardour/editor_ops.cc | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 339b436064..4a4afb508b 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -8541,24 +8541,23 @@ Editor::insert_time (timepos_t const & pos, timecnt_t const & samples, InsertTim Locations::LocationList::const_iterator tmp; - if ((*i)->position_time_domain() == Temporal::AudioTime) { - bool const was_locked = (*i)->locked (); - if (locked_markers_too) { - (*i)->unlock (); - } + bool const was_locked = (*i)->locked (); - if ((*i)->start() >= pos) { - // move end first, in case we're moving by more than the length of the range - if (!(*i)->is_mark()) { - (*i)->set_end ((*i)->end() + samples, false); - } - (*i)->set_start ((*i)->start() + samples, false); - moved = true; - } + if (locked_markers_too) { + (*i)->unlock (); + } - if (was_locked) { - (*i)->lock (); + if ((*i)->start() >= pos) { + // move end first, in case we're moving by more than the length of the range + if (!(*i)->is_mark()) { + (*i)->set_end ((*i)->end() + samples, false); } + (*i)->set_start ((*i)->start() + samples, false); + moved = true; + } + + if (was_locked) { + (*i)->lock (); } }