diff layer/TimeValueLayer.cpp @ 1432:5b9692768beb single-point

Further snap fixes
author Chris Cannam
date Wed, 20 Mar 2019 15:46:17 +0000
parents af824022bffd
children 9abddbd57667
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp	Wed Mar 20 14:59:34 2019 +0000
+++ b/layer/TimeValueLayer.cpp	Wed Mar 20 15:46:17 2019 +0000
@@ -662,10 +662,6 @@
 
     // SnapLeft / SnapRight: return frame of nearest feature in that
     // direction no matter how far away
-    // 
-    // SnapNearest: return frame of nearest feature in either
-    // direction no matter how far away - I'm fairly sure this is
-    // never actually used
     //
     // SnapNeighbouring: return frame of feature that would be used in
     // an editing operation, i.e. closest feature in either direction
@@ -703,6 +699,8 @@
         return Layer::snapToSimilarFeature(v, frame, resolution, snap);
     }
 
+    // snap is only permitted to be SnapLeft or SnapRight here.
+    
     resolution = m_model->getResolution();
 
     Event ref;