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:
parent
282437ab77
commit
128623e7fb
@ -1733,7 +1733,7 @@ Editor::invert_selection ()
|
|||||||
{
|
{
|
||||||
|
|
||||||
if (internal_editing()) {
|
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);
|
MidiRegionView* mrv = dynamic_cast<MidiRegionView*>(*i);
|
||||||
if (mrv) {
|
if (mrv) {
|
||||||
mrv->invert_selection ();
|
mrv->invert_selection ();
|
||||||
|
Loading…
Reference in New Issue
Block a user