mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -773,7 +773,8 @@ Editor::button_press_handler_1 (ArdourCanvas::Item* item, GdkEvent* event, ItemT
|
|||
if (t) {
|
||||
boost::shared_ptr<Playlist> pl = t->diskstream()->playlist ();
|
||||
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) {
|
||||
RegionView* rv = rtv->view()->find_view (r);
|
||||
clicked_selection = select_range_around_region (rv);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue