fix region drag/drop from region list
authorRobin Gareus <robin@gareus.org>
Tue, 21 Oct 2014 09:46:15 +0000 (11:46 +0200)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 22 Oct 2014 13:07:18 +0000 (09:07 -0400)
The canvas’ Y-offset (rulers & scroll) needs to be subtracted here.

gtk2_ardour/editor_canvas_events.cc

index aa1635da93c93b8da02f74da462d050d441ca846..843faf466564f8001db73ac2218c3a041b443e0f 100644 (file)
@@ -1169,7 +1169,7 @@ Editor::track_canvas_drag_motion (Glib::RefPtr<Gdk::DragContext> const& context,
 
        (void) window_event_sample (&event, &px, &py);
 
-       std::pair<TimeAxisView*, int> const tv = trackview_by_y_position (py);
+       std::pair<TimeAxisView*, int> const tv = trackview_by_y_position (py, false);
        bool can_drop = false;
        
        if (tv.first != 0) {