mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 19:56:31 +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);
|
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));
|
BBT_Time bbt (bbt_at_beat_locked (_metrics, beat_at_framepos));
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue