Enforce rounding to beat as >= 0.0

This commit is contained in:
nick_m 2016-08-16 00:43:08 +10:00
parent 46cbb9084e
commit 4848cb6d42

View file

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