From e9deb82ef6449829d5d645a5fd4b454b945d7937 Mon Sep 17 00:00:00 2001 From: nick_m Date: Tue, 13 Dec 2016 04:36:07 +1100 Subject: [PATCH] only update MidiRegion length_beats in partial copy ctor if there is an offset. --- libs/ardour/midi_region.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/midi_region.cc b/libs/ardour/midi_region.cc index abaf6d3484..9b01b03f16 100644 --- a/libs/ardour/midi_region.cc +++ b/libs/ardour/midi_region.cc @@ -109,9 +109,9 @@ MidiRegion::MidiRegion (boost::shared_ptr 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);