fix copy-paste but in MidiTimeAxisView::set_note_selection() - use set, not add

This commit is contained in:
Paul Davis 2023-10-18 09:05:10 -06:00
parent d88b9d36ca
commit b7b2189d95
1 changed files with 2 additions and 2 deletions

View File

@ -1576,11 +1576,11 @@ MidiTimeAxisView::set_note_selection (uint8_t note)
if (_view->num_selected_regionviews() == 0) {
_view->foreach_regionview (
sigc::bind (sigc::mem_fun (*this, &MidiTimeAxisView::add_note_selection_region_view),
sigc::bind (sigc::mem_fun (*this, &MidiTimeAxisView::set_note_selection_region_view),
note, chn_mask));
} else {
_view->foreach_selected_regionview (
sigc::bind (sigc::mem_fun (*this, &MidiTimeAxisView::add_note_selection_region_view),
sigc::bind (sigc::mem_fun (*this, &MidiTimeAxisView::set_note_selection_region_view),
note, chn_mask));
}