diff options
author | nick_m <mainsbridge@gmail.com> | 2017-01-31 02:56:41 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2017-02-04 22:57:36 +1100 |
commit | 2ddc21c3a99690425ee86ef96c75320d56b87690 (patch) | |
tree | 2a289403bf9c872f03c9be3de857f0fdf4087bc5 /libs/ardour/region.cc | |
parent | 970ed12fee89dad842316e47415792cac5a6b44c (diff) |
ensure region _quarter_note is set in offset ctor..
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r-- | libs/ardour/region.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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<const Region> 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 |