determine scope of potential end-of-drag ripple

This commit is contained in:
Paul Davis 2021-06-04 11:09:50 -06:00
parent 283e2103ba
commit 04c03199dc

View file

@ -1770,6 +1770,16 @@ RegionMoveDrag::finished_copy (bool const changed_position, bool const changed_t
quarter_note = i->view->region()->quarter_note(); 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 (i->time_axis_view < 0 || i->time_axis_view >= (int)_time_axis_views.size()) { if (i->time_axis_view < 0 || i->time_axis_view >= (int)_time_axis_views.size()) {
/* dragged to drop zone */ /* dragged to drop zone */