Skip to content

Commit

Permalink
Pianoroll - Add checkpoint before moving notes
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed Jan 20, 2019
1 parent dd99f3a commit 6df6f12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/editors/PianoRoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() )
{
Expand All @@ -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;
Expand Down

0 comments on commit 6df6f12

Please sign in to comment.