summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-02-28 23:00:00 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-02-28 23:00:00 +0000
commitc6d7221890dfa06f14ae136dba2881832f545892 (patch)
tree0df80babb726092fff7b6747e597bb83e9f34cb7 /gtk2_ardour
parentd6ce26e9e30b8455b69c322de25e258c66cf5594 (diff)
slight correction to last copy-drag-constrained logic
git-svn-id: svn://localhost/ardour2/trunk@1537 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_mouse.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc
index c11fde58c2..88b4333878 100644
--- a/gtk2_ardour/editor_mouse.cc
+++ b/gtk2_ardour/editor_mouse.cc
@@ -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. */