From 70e739b29afba79dddc748118efa379978cf58d6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 27 Mar 2015 00:37:47 +0100 Subject: [PATCH] Another DnD fix. fix move onto (but not over) busses. --- gtk2_ardour/editor_drag.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 (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,