From 128623e7fb25f0fde32aa5dd40c9e7d2233e4762 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 12 Aug 2019 02:28:38 +0200 Subject: [PATCH] Fix midi-note selection invert Selecting Notes in a region does not select the region itself. Invert-selection needs to iterate over midi-regions that contain the selection. --- gtk2_ardour/editor_selection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 27f35c8d2f..5929567769 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1733,7 +1733,7 @@ Editor::invert_selection () { if (internal_editing()) { - for (RegionSelection::iterator i = selection->regions.begin(); i != selection->regions.end(); ++i) { + for (MidiRegionSelection::iterator i = selection->midi_regions.begin(); i != selection->midi_regions.end(); ++i) { MidiRegionView* mrv = dynamic_cast(*i); if (mrv) { mrv->invert_selection ();