mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Enforce rounding to beat as >= 0.0
This commit is contained in:
parent
46cbb9084e
commit
4848cb6d42
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue