diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 8cd3817a6c..02fd84a4d6 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -2133,9 +2133,7 @@ MidiRegionView::delete_note (boost::shared_ptr n) void MidiRegionView::clear_selection () { - clear_selection_internal(); - PublicEditor& editor(trackview.editor()); - editor.get_selection().remove (this); + clear_note_selection (); _mouse_state = None; } @@ -2151,6 +2149,14 @@ MidiRegionView::clear_selection_internal () _selection.clear(); } +void +MidiRegionView::clear_note_selection () +{ + clear_selection_internal (); + PublicEditor& editor(trackview.editor()); + editor.get_selection().remove (this); +} + void MidiRegionView::unique_select(NoteBase* ev) { diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index 1d7dd881fc..2fb21311c6 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -370,7 +370,7 @@ public: protected: friend class Editor; - void clear_note_selection () { clear_selection_internal(); } + void clear_note_selection (); void move_note_starts_earlier_fine () { change_note_lengths (true, false, Temporal::Beats(), true, false); } void move_note_starts_earlier () { change_note_lengths (false, false, Temporal::Beats(), true, false); }