Ensure BBTRulerDrag operates within the tempo map.
This commit is contained in:
parent
e3a8f2786d
commit
1c0651f7f4
@ -3430,7 +3430,7 @@ void
|
|||||||
BBTRulerDrag::setup_pointer_frame_offset ()
|
BBTRulerDrag::setup_pointer_frame_offset ()
|
||||||
{
|
{
|
||||||
TempoMap& map (_editor->session()->tempo_map());
|
TempoMap& map (_editor->session()->tempo_map());
|
||||||
const double beat_at_frame = map.beat_at_frame (raw_grab_frame());
|
const double beat_at_frame = max (0.0, map.beat_at_frame (raw_grab_frame()));
|
||||||
const uint32_t divisions = _editor->get_grid_beat_divisions (0);
|
const uint32_t divisions = _editor->get_grid_beat_divisions (0);
|
||||||
double beat = 0.0;
|
double beat = 0.0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user