Complete Lua-binding dump (after 8eb3b9d34b)
[ardour.git] / gtk2_ardour / midi_region_view.cc
index 0193bc04d4896feabcec406b698961ac53449b4b..9d5a6f86e601e11d382c6640a030b0870f065efb 100644 (file)
@@ -1093,6 +1093,7 @@ MidiRegionView::abort_command()
 {
        delete _note_diff_command;
        _note_diff_command = 0;
+       trackview.editor().abort_reversible_command();
        clear_editor_note_selection();
 }
 
@@ -2081,7 +2082,6 @@ MidiRegionView::change_patch_change (MidiModel::PatchChangePtr old_change, const
 void
 MidiRegionView::add_patch_change (framecnt_t t, Evoral::PatchChange<Evoral::Beats> const & patch)
 {
-       MidiTimeAxisView* const mtv = dynamic_cast<MidiTimeAxisView*>(&trackview);
        string name = _("add patch change");
 
        trackview.editor().begin_reversible_command (name);