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:
parent
5bdc03ab5c
commit
a992cd5574
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user