diff options
author | nick_m <mainsbridge@gmail.com> | 2016-08-16 00:43:08 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-08-16 00:43:08 +1000 |
commit | 4848cb6d428b348e0fbb9dfee44e4e10024d2672 (patch) | |
tree | 167fa339af4d039892476f1699d1373fccc779a6 /libs | |
parent | 46cbb9084e124e971427b7c982b20c86a5fb2f1a (diff) |
Enforce rounding to beat as >= 0.0
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/tempo.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index bdea2ae6a1..754b60f249 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -3143,7 +3143,7 @@ TempoMap::round_to_type (framepos_t frame, RoundMode dir, BBTPointType type) { Glib::Threads::RWLock::ReaderLock lm (lock); - const double beat_at_framepos = beat_at_frame_locked (_metrics, frame); + const double beat_at_framepos = max (0.0, beat_at_frame_locked (_metrics, frame)); BBT_Time bbt (bbt_at_beat_locked (_metrics, beat_at_framepos)); switch (type) { |