mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Music locked regions stay positive after tempo map change.
This commit is contained in:
parent
466141229f
commit
0585393989
1 changed files with 2 additions and 1 deletions
|
|
@ -573,7 +573,8 @@ Region::update_after_tempo_map_change (bool send)
|
|||
return;
|
||||
}
|
||||
|
||||
const framepos_t pos = _session.tempo_map().frame_at_beat (_beat);
|
||||
/* prevent movement before 0 */
|
||||
const framepos_t pos = max ((framepos_t) 0, _session.tempo_map().frame_at_beat (_beat));
|
||||
/* we have _beat. update frame position non-musically */
|
||||
set_position_internal (pos, false, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue