From d9c7a2ad4959c97d2a830d7c30be8bc957dcd888 Mon Sep 17 00:00:00 2001 From: nick_m Date: Wed, 15 Feb 2017 22:55:51 +1100 Subject: unconditionally set region quarter note in set_position(). - this fixes incorrect timing of new regions recorded before the music origin. --- libs/ardour/region.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour') diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 4cb5ab4dcb..8640b53a6e 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -610,9 +610,9 @@ Region::set_position (framepos_t pos, int32_t sub_num) } else { if (!_session.loading()) { _beat = _session.tempo_map().exact_beat_at_frame (pos, sub_num); + _quarter_note = _session.tempo_map().quarter_note_at_beat (_beat); } - /* will set quarter note accordingly */ set_position_internal (pos, false, sub_num); } -- cgit v1.2.3