13
0

only update MidiRegion length_beats in partial copy ctor if there is an offset.

This commit is contained in:
nick_m 2016-12-13 04:36:07 +11:00
parent 44e8181c36
commit e9deb82ef6

View File

@ -109,9 +109,9 @@ MidiRegion::MidiRegion (boost::shared_ptr<const MidiRegion> other, frameoffset_t
{
if (offset != 0) {
_start_beats = (_session.tempo_map().exact_qn_at_frame (other->_position + offset, sub_num) - other->_quarter_note) + other->_start_beats;
update_length_beats (sub_num);
}
update_length_beats (sub_num);
register_properties ();
assert(_name.val().find("/") == string::npos);