Music locked regions stay positive after tempo map change.
authornick_m <mainsbridge@gmail.com>
Mon, 17 Oct 2016 15:12:33 +0000 (02:12 +1100)
committernick_m <mainsbridge@gmail.com>
Mon, 17 Oct 2016 15:12:33 +0000 (02:12 +1100)
libs/ardour/region.cc

index f67deb0b71c862966325ca1f82241cfb0ab80200..9574062bbf885726c722dd8697c032147ebc1f52 100644 (file)
@@ -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);