diff options
author | nick_m <mainsbridge@gmail.com> | 2016-08-13 05:37:18 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-08-14 03:04:54 +1000 |
commit | 1c0651f7f4974fb404cf89f2233df01192ec1b24 (patch) | |
tree | dfbfc9aebe700131a62063dcc9c3496b9fd710c7 /gtk2_ardour/editor_drag.cc | |
parent | e3a8f2786d364f9496dbaa8a27e9058fedeff411 (diff) |
Ensure BBTRulerDrag operates within the tempo map.
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 5852f10b43..20e8b4f054 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -3430,7 +3430,7 @@ void BBTRulerDrag::setup_pointer_frame_offset () { 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); double beat = 0.0; |