end drags on regions before doing front trim, so that fades get visually updated...
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 13 Dec 2012 15:54:50 +0000 (15:54 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 13 Dec 2012 15:54:50 +0000 (15:54 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13657 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_drag.cc

index 96d02e817c8ed3b2a89a518256c5af4153615c0b..8f149f24e6e0dac4a91502d45bffb67e2b86a3fd 100644 (file)
@@ -1780,6 +1780,10 @@ TrimDrag::finished (GdkEvent* event, bool movement_occurred)
        if (movement_occurred) {
                motion (event, false);
 
+               for (list<DraggingView>::const_iterator i = _views.begin(); i != _views.end(); ++i) {
+                       i->view->drag_end ();
+               }
+
                /* This must happen before the region's StatefulDiffCommand is created, as it may
                   `correct' (ahem) the region's _start from being negative to being zero.  It
                   needs to be zero in the undo record.
@@ -1822,6 +1826,7 @@ TrimDrag::finished (GdkEvent* event, bool movement_occurred)
                                }
                        }
                }
+
                for (set<boost::shared_ptr<Playlist> >::iterator p = _editor->motion_frozen_playlists.begin(); p != _editor->motion_frozen_playlists.end(); ++p) {
                        (*p)->thaw ();
                }
@@ -1829,10 +1834,6 @@ TrimDrag::finished (GdkEvent* event, bool movement_occurred)
                _editor->motion_frozen_playlists.clear ();
                _editor->commit_reversible_command();
 
-               for (list<DraggingView>::const_iterator i = _views.begin(); i != _views.end(); ++i) {
-                       i->view->drag_end ();
-               }
-
        } else {
                /* no mouse movement */
                _editor->point_trim (event, adjusted_current_frame (event));