From 058539398977fb41a6ae9a2541472bc271a13aa9 Mon Sep 17 00:00:00 2001 From: nick_m Date: Tue, 18 Oct 2016 02:12:33 +1100 Subject: [PATCH] Music locked regions stay positive after tempo map change. --- libs/ardour/region.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);