From 2ddc21c3a99690425ee86ef96c75320d56b87690 Mon Sep 17 00:00:00 2001 From: nick_m Date: Tue, 31 Jan 2017 02:56:41 +1100 Subject: ensure region _quarter_note is set in offset ctor.. --- libs/ardour/region.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libs/ardour/region.cc') diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 4eda001708..151f4a7f1b 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -360,6 +360,8 @@ Region::Region (boost::shared_ptr other, MusicFrame offset) _quarter_note = other->_quarter_note + offset_qn; _beat = _session.tempo_map().beat_at_quarter_note (_quarter_note); + } else { + _quarter_note = _session.tempo_map().quarter_note_at_beat (_beat); } /* if the other region had a distinct sync point -- cgit v1.2.3