13
0

patch for bad region-extension when pasting into a MIDI that doesn't start at zero (from tophatdave) (related to #4664)

git-svn-id: svn://localhost/ardour2/branches/3.0@11420 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-02-02 02:40:47 +00:00
parent 87f6aeaae3
commit e9a6d86b9b

View File

@ -3251,7 +3251,7 @@ MidiRegionView::paste (framepos_t pos, float times, const MidiCutBuffer& mcb)
DEBUG_TRACE (DEBUG::CutNPaste, string_compose ("Paste extended region from %1 to %2\n", region_end, end_frame));
_region->clear_changes ();
_region->set_length (end_frame);
_region->set_length (end_frame - _region->position());
trackview.session()->add_command (new StatefulDiffCommand (_region));
}