Skip to content
Permalink
Browse files

Pianoroll - Add checkpoint before moving notes

  • Loading branch information...
zonkmachine committed Jan 20, 2019
1 parent dd99f3a commit 6df6f12a3d54bfaa61beff7865a2f0c02adc3071
Showing with 2 additions and 0 deletions.
  1. +2 −0 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;

0 comments on commit 6df6f12

Please sign in to comment.
You can’t perform that action at this time.