Fix invalidated iterator when removing notes in Piano Roll (#7080)

* Fix invalidated iterator when removing notes in Piano Roll

* fixup - typo

* Add MidiClip::removeNote(iterator) function

* Use iterator version of remoteNote

* Fix parameter name

* Change variable name again
This commit is contained in:
Kevin Zander
2024-02-23 14:57:41 -06:00
committed by GitHub
parent cbaf2f0919
commit 7318af0fe9
3 changed files with 24 additions and 8 deletions

View File

@@ -63,7 +63,8 @@ public:
// note management
Note * addNote( const Note & _new_note, const bool _quant_pos = true );
void removeNote( Note * _note_to_del );
NoteVector::const_iterator removeNote(NoteVector::const_iterator it);
NoteVector::const_iterator removeNote(Note* note);
Note * noteAtStep( int _step );