mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
remove another NUTEMPO #warning by allow grab starts in rubber band selection to use the default time domain
This commit is contained in:
parent
162d36ffc8
commit
f05b2ed93b
1 changed files with 8 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue