diff layer/FlexiNoteLayer.cpp @ 775:a6b87176b259 tonioni

reinstated the original way that was better than my fix
author matthiasm
date Thu, 22 May 2014 11:21:36 +0100
parents 8c2dfb4d6c7a
children 3a52b458fcd5 1d526ba11a24
line wrap: on
line diff
--- a/layer/FlexiNoteLayer.cpp	Wed May 21 21:16:11 2014 +0100
+++ b/layer/FlexiNoteLayer.cpp	Thu May 22 11:21:36 2014 +0100
@@ -1356,9 +1356,9 @@
 
         command->deletePoint(note);
 
-        updateNoteValue(v, newNote);
-        command->addPoint(newNote);
-
+        if (updateNoteValue(v, newNote)) {
+            command->addPoint(newNote);
+        }
     }
     
     finish(command);