# HG changeset patch # User matthiasm # Date 1397230452 -3600 # Node ID 6388ddae6ce3b5ddaeb5a39221e680e0327e55cb # Parent b75c95e7f9064c4326f327bd9e182946049c7194 added note pitch snapping after "move" edit diff -r b75c95e7f906 -r 6388ddae6ce3 layer/FlexiNoteLayer.cpp --- a/layer/FlexiNoteLayer.cpp Thu Apr 03 08:51:30 2014 +0100 +++ b/layer/FlexiNoteLayer.cpp Fri Apr 11 16:34:12 2014 +0100 @@ -1141,6 +1141,7 @@ break; } } + updateNoteValue(v, m_editingPoint); m_editingCommand->addPoint(m_editingPoint); std::cerr << "added new point(" << m_editingPoint.frame << "," << m_editingPoint.duration << ")" << std::endl; @@ -1354,9 +1355,7 @@ command->deletePoint(note); - if (updateNoteValue(v, newNote)) { - command->addPoint(newNote); - } + } finish(command);