diff main/Analyser.cpp @ 641:327177b6bd3a v2.1pre2

Fix recently-introduced bug that made the scale disappear and tracks jump around when toggling off the spectrogram
author Chris Cannam
date Thu, 17 Oct 2019 14:44:55 +0100
parents af488f78d029
children 90ee5448c205
line wrap: on
line diff
--- a/main/Analyser.cpp	Thu Oct 17 13:54:26 2019 +0100
+++ b/main/Analyser.cpp	Thu Oct 17 14:44:55 2019 +0100
@@ -912,8 +912,8 @@
         return;
     }
     
-    flexiNoteLayer->snapToFeatureFrame(m_pane, f0i, res, Layer::SnapLeft);
-    flexiNoteLayer->snapToFeatureFrame(m_pane, f1i, res, Layer::SnapRight);
+    flexiNoteLayer->snapToFeatureFrame(m_pane, f0i, res, Layer::SnapLeft, -1);
+    flexiNoteLayer->snapToFeatureFrame(m_pane, f1i, res, Layer::SnapRight, -1);
 
     f0 = (f0i < 0 ? 0 : f0i);
     f1 = (f1i < 0 ? 0 : f1i);