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 ();