slight correction to last copy-drag-constrained logic
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 28 Feb 2007 23:00:00 +0000 (23:00 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 28 Feb 2007 23:00:00 +0000 (23:00 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1537 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_mouse.cc

index c11fde58c29db0989792a99cb5716b34bcab0b6c..88b43338784ed71878e437e3050785cbab1109a2 100644 (file)
@@ -2834,9 +2834,11 @@ Editor::region_drag_motion_callback (ArdourCanvas::Item* item, GdkEvent* event)
           if we haven't passed the move threshold yet
        */
 
-       if ((drag_info.x_constrained && (drag_info.last_trackview != &rv->get_time_axis_view())) &&
+       if ((!drag_info.x_constrained || (drag_info.last_trackview != &rv->get_time_axis_view())) &&
             drag_info.copy && drag_info.move_threshold_passed && drag_info.want_move_threshold) {
 
+               cerr << "COPY, xcons = " << drag_info.x_constrained << " last = " << drag_info.last_trackview->name() << " rv = " << rv->get_time_axis_view().name() << endl;
+
                drag_info.want_move_threshold = false; // don't copy again
 
                /* this is committed in the grab finished callback. */