Make crossfade edge drags undoable.

git-svn-id: svn://localhost/ardour2/branches/3.0@12625 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-06-09 13:25:13 +00:00
parent ee8634cd87
commit 5049883d46
1 changed files with 1 additions and 2 deletions

View File

@ -4557,8 +4557,6 @@ NoteCreateDrag::aborted (bool)
}
/*------------*/
CrossfadeEdgeDrag::CrossfadeEdgeDrag (Editor* e, AudioRegionView* rv, ArdourCanvas::Item* i, bool start_yn)
: Drag (e, i)
, arv (rv)
@ -4640,6 +4638,7 @@ CrossfadeEdgeDrag::finished (GdkEvent*, bool)
vector<Command*> cmds;
ar->playlist()->rdiff (cmds);
_editor->session()->add_commands (cmds);
_editor->commit_reversible_command ();
}