diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-25 13:05:24 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-25 13:05:24 +0100 |
commit | f851a0bf3a444876747e244f985f90d74c859fd7 (patch) | |
tree | 0da440829afe6ca871b46637d6db036555e86fa8 | |
parent | d05c09c1f6c10f10bbfd4eada53d38f9627a697e (diff) |
two more drop zone checks
see also 6cfb6ef
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index bd65dd1b55..ed28bc3976 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -686,7 +686,7 @@ RegionMotionDrag::y_movement_allowed (int delta_track, double delta_layer, int s #endif assert (n < 0 || n >= _time_axis_views.size() || !_time_axis_views[n]->hidden()); - if (i->time_axis_view < 0) { + if (i->time_axis_view < 0 || i->time_axis_view >= _time_axis_views.size()) { /* already in the drop zone */ if (delta_track >= 0) { /* downward motion - might be OK if others are still not in the dropzone, @@ -1331,7 +1331,7 @@ RegionMoveDrag::finished_copy (bool const changed_position, bool const /*changed where = i->view->region()->position(); } - if (i->time_axis_view < 0) { + if (i->time_axis_view < 0 || i->time_axis_view >= _time_axis_views.size()) { /* dragged to drop zone */ PlaylistMapping::iterator pm; |