diff layer/SpectrogramLayer.cpp @ 1431:af824022bffd single-point

Begin fixing the various snap operations. Also remove SnapNearest, which is never used and seems to consume more lines of code than the rest!
author Chris Cannam
date Wed, 20 Mar 2019 14:59:34 +0000
parents 8e40faa56ffd
children e2b6a13a1f69
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp	Wed Mar 20 11:18:45 2019 +0000
+++ b/layer/SpectrogramLayer.cpp	Wed Mar 20 14:59:34 2019 +0000
@@ -1792,7 +1792,6 @@
     switch (snap) {
     case SnapLeft:  frame = left;  break;
     case SnapRight: frame = right; break;
-    case SnapNearest:
     case SnapNeighbouring:
         if (frame - left > right - frame) frame = right;
         else frame = left;