From f05b2ed93be61645006d51b2ba4a3bb606b3c6ed Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 18 Mar 2021 22:42:54 -0600 Subject: [PATCH] remove another NUTEMPO #warning by allow grab starts in rubber band selection to use the default time domain --- gtk2_ardour/editor_drag.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 7dd651e531..ccb205c5e3 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -5443,8 +5443,14 @@ RubberbandSelectDrag::do_select_things (GdkEvent* event, bool drag_in_progress) if (!UIConfiguration::instance().get_rubberbanding_snaps_to_grid ()) { grab = raw_grab_time (); -#warning NUTEMPO how can this ever use BeatTime - lpf = timepos_t (_editor->pixel_to_sample_from_event (last_pointer_x())); + + timepos_t pos (_editor->pixel_to_sample_from_event (last_pointer_x())); + + if (_editor->default_time_domain() == Temporal::AudioTime) { + lpf = pos; + } else { + lpf = timepos_t (pos.beats()); + } } if (grab < lpf) {