Fix Crash when Reversing Empty MIDI Clip (#7893)

This commit is contained in:
regulus79
2025-05-15 22:45:17 -04:00
committed by GitHub
parent e50f312818
commit 6bde3fb492

View File

@@ -326,6 +326,8 @@ void MidiClip::setStep( int step, bool enabled )
void MidiClip::reverseNotes(const NoteVector& notes)
{
if (notes.empty()) { return; }
addJournalCheckPoint();
// Find the very first start position and the very last end position of all the notes.