From bed041cf969e844d51089536beb977d389e6e03f Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 28 Sep 2023 00:41:17 +0200 Subject: [PATCH] Set DnD time's time-domain Drag::_raw_grab_time is set to the correct time-domain. However during ::motion() and other operations the adjusted time was always AudioTime. Most notably this caused editor->selection->time to have different time-domains for start and end. --- gtk2_ardour/editor_drag.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index f3fd23cecb..60a0128500 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -427,6 +427,7 @@ Drag::adjusted_time (timepos_t const& f, GdkEvent const* event, bool snap) const _editor->snap_to_with_modifier (pos, event); } + pos.set_time_domain (_time_domain); return pos; }