summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_mouse.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-12-08 17:20:02 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-12-08 17:20:02 +0000
commit752d8d4b6f2f28fdd3fc810cfd956e4bec5b9ef8 (patch)
tree885b48924fc04881f173d99cb34184c02106c473 /gtk2_ardour/editor_mouse.cc
parent23294003f01db00f3896696fb3d8666774f3e14f (diff)
revert the only real change in that last commit,which was based on a bogus merge
git-svn-id: svn://localhost/ardour2/branches/3.0@4302 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_mouse.cc')
-rw-r--r--gtk2_ardour/editor_mouse.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc
index 81ca998a00..652ab49343 100644
--- a/gtk2_ardour/editor_mouse.cc
+++ b/gtk2_ardour/editor_mouse.cc
@@ -4001,11 +4001,8 @@ Editor::region_drag_finished_callback (ArdourCanvas::Item* item, GdkEvent* event
continue;
}
- changed_position = (drag_info.last_frame_position != (nframes_t) (rv->region()->position()));
- changed_tracks = (dest_tv != &rv->get_time_axis_view());
-
if (changed_position && !drag_info.x_constrained) {
- where = (nframes_t) unit_to_frame (ix1);
+- where = rv->region()->position() - drag_delta;
} else {
where = rv->region()->position();
}