mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 11:46:25 +01:00
determine scope of potential end-of-drag ripple
This commit is contained in:
parent
283e2103ba
commit
04c03199dc
1 changed files with 10 additions and 0 deletions
|
|
@ -1770,6 +1770,16 @@ RegionMoveDrag::finished_copy (bool const changed_position, bool const changed_t
|
|||
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()) {
|
||||
/* dragged to drop zone */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue