amend massive thinko in last commit (actually works).

This commit is contained in:
nick_m 2017-01-07 05:28:56 +11:00
parent bacb93493d
commit 9e048851c1
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ MidiRegion::MidiRegion (boost::shared_ptr<const MidiRegion> other, frameoffset_t
_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);
/* we've potentially shifted _start_beats, now reset _start frames to match */
_start = _session.tempo_map().frame_at_quarter_note (other->_quarter_note - other->_start_beats);
_start = _session.tempo_map().frames_between_quarter_notes (_quarter_note - _start_beats, _quarter_note);
}
register_properties ();