determine potential ripple range for non-copy drag

This commit is contained in:
Paul Davis 2021-06-04 11:11:42 -06:00
parent 6efbcf1ff7
commit 4a1d09d474
1 changed files with 10 additions and 0 deletions

View File

@ -1932,6 +1932,16 @@ RegionMoveDrag::finished_no_copy (
quarter_note = i->view->region()->quarter_note();
}
/* compute full extent of regions that we're going to insert */
if (where.sample < extent_min) {
extent_min = where.sample;
}
if (where.sample + i->view->region()->length() > extent_max) {
extent_max = where.sample + i->view->region()->length();
}
if (changed_tracks) {
/* insert into new playlist */