Fix crash on "Consolidate Range" on MIDI tracks (#4226).

git-svn-id: svn://localhost/ardour2/branches/3.0@10200 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2011-10-07 21:35:33 +00:00
parent 8be2e11c65
commit 291bd32c9d
2 changed files with 7 additions and 6 deletions

View file

@ -3368,6 +3368,10 @@ Editor::bounce_range_selection (bool replace, bool enable_processing)
boost::shared_ptr<Region> r = rtv->track()->bounce_range (start, start+cnt, itt, enable_processing);
if (!r) {
continue;
}
if (replace) {
list<AudioRange> ranges;
ranges.push_back (AudioRange (start, start+cnt, 0));