#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,
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;