diff options
author | nick_m <mainsbridge@gmail.com> | 2016-10-18 02:12:33 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-10-18 02:12:33 +1100 |
commit | 058539398977fb41a6ae9a2541472bc271a13aa9 (patch) | |
tree | e528c8b64245c09270ea5f2ceca3a4b432094b53 /libs/ardour/region.cc | |
parent | 466141229f0402c807902f9fc42446bd4416c600 (diff) |
Music locked regions stay positive after tempo map change.
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r-- | libs/ardour/region.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index f67deb0b71..9574062bbf 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -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); |