diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index 2b40d0af9..51751ac95 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -43,6 +43,7 @@ #include #include +#include #include #include @@ -4471,6 +4472,7 @@ void PianoRoll::finishRecordNote(const Note & n ) n1.quantizeLength(quantization()); n1.quantizePos(quantization()); } + n1.setLength(std::max(n1.length(), TimePos(1))); m_midiClip->addNote(n1, false); update(); m_recordingNotes.erase( it );