diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-27 00:37:47 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-27 00:37:47 +0100 |
commit | 70e739b29afba79dddc748118efa379978cf58d6 (patch) | |
tree | 275c4c4f61872ec3a092946addc5c4d6df390927 /gtk2_ardour/editor_drag.cc | |
parent | 1dfee4813923f36401af771ee8731ec1ba3f20af (diff) |
Another DnD fix. fix move onto (but not over) busses.
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index ed529f650d..b1a1ba62d0 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -814,7 +814,11 @@ RegionMotionDrag::motion (GdkEvent* event, bool first_move) */ delta_time_axis_view = current_pointer_time_axis_view - _time_axis_views.size () + _ddropzone - _pdropzone; } else { - delta_time_axis_view = current_pointer_time_axis_view - _last_pointer_time_axis_view; + /* ignore busses early on. we can't move any regions on them */ + RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (tv); + if (rtv && rtv->is_track()) { + delta_time_axis_view = current_pointer_time_axis_view - _last_pointer_time_axis_view; + } } /* TODO needs adjustment per DraggingView, |