13
0

remove another NUTEMPO #warning by allow grab starts in rubber band selection to use the default time domain

This commit is contained in:
Paul Davis 2021-03-18 22:42:54 -06:00
parent 162d36ffc8
commit f05b2ed93b

View File

@ -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) {