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.
This commit is contained in:
Robin Gareus 2019-08-12 02:28:38 +02:00
parent 282437ab77
commit 128623e7fb
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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<MidiRegionView*>(*i);
if (mrv) {
mrv->invert_selection ();