summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_drag.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-03-27 00:37:47 +0100
committerRobin Gareus <robin@gareus.org>2015-03-27 00:37:47 +0100
commit70e739b29afba79dddc748118efa379978cf58d6 (patch)
tree275c4c4f61872ec3a092946addc5c4d6df390927 /gtk2_ardour/editor_drag.cc
parent1dfee4813923f36401af771ee8731ec1ba3f20af (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.cc6
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,