From 6df6f12a3d54bfaa61beff7865a2f0c02adc3071 Mon Sep 17 00:00:00 2001 From: Oskar Wallgren Date: Sun, 20 Jan 2019 14:32:44 +0100 Subject: [PATCH] Pianoroll - Add checkpoint before moving notes --- src/gui/editors/PianoRoll.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index 6950c0005..7bdf9dc07 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -952,6 +952,7 @@ void PianoRoll::shiftSemiTone( int amount ) // shift notes by amount semitones { if (!hasValidPattern()) {return;} + m_pattern->addJournalCheckPoint(); bool useAllNotes = ! isSelection(); for( Note *note : m_pattern->notes() ) { @@ -978,6 +979,7 @@ void PianoRoll::shiftPos( int amount ) //shift notes pos by amount { if (!hasValidPattern()) {return;} + m_pattern->addJournalCheckPoint(); bool useAllNotes = ! isSelection(); bool first = true;