Mercurial > hg > svgui
diff layer/Colour3DPlotLayer.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 | 39f1154c0e97 |
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp Wed Mar 20 11:18:45 2019 +0000 +++ b/layer/Colour3DPlotLayer.cpp Wed Mar 20 14:59:34 2019 +0000 @@ -1189,7 +1189,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;