diff layer/FlexiNoteLayer.cpp @ 765:410816717c2c tony_integration

Merge from tonioni branch
author Chris Cannam
date Wed, 07 May 2014 15:12:13 +0100
parents 6388ddae6ce3
children 8c2dfb4d6c7a
line wrap: on
line diff
--- a/layer/FlexiNoteLayer.cpp	Wed Apr 02 08:53:32 2014 +0100
+++ b/layer/FlexiNoteLayer.cpp	Wed May 07 15:12:13 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);