13
0

Fix bug when dragging regions in PT-edit mode.

git-svn-id: svn://localhost/ardour2/branches/3.0@6505 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-01-16 01:08:15 +00:00
parent 5bdc03ab5c
commit a992cd5574

View File

@ -773,7 +773,8 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
if (t) { if (t) {
boost::shared_ptr<Playlist> pl = t->diskstream()->playlist (); boost::shared_ptr<Playlist> pl = t->diskstream()->playlist ();
if (pl) { if (pl) {
boost::shared_ptr<Region> r = pl->top_region_at (unit_to_frame (event->button.x));
boost::shared_ptr<Region> r = pl->top_region_at (event_frame (event));
if (r) { if (r) {
RegionView* rv = rtv->view()->find_view (r); RegionView* rv = rtv->view()->find_view (r);
clicked_selection = select_range_around_region (rv); clicked_selection = select_range_around_region (rv);