Mercurial > hg > tony
comparison 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 |
comparison
equal
deleted
inserted
replaced
640:606bdcc3856a | 641:327177b6bd3a |
---|---|
910 if (!flexiNoteLayer) { | 910 if (!flexiNoteLayer) { |
911 f0 = f1 = f; | 911 f0 = f1 = f; |
912 return; | 912 return; |
913 } | 913 } |
914 | 914 |
915 flexiNoteLayer->snapToFeatureFrame(m_pane, f0i, res, Layer::SnapLeft); | 915 flexiNoteLayer->snapToFeatureFrame(m_pane, f0i, res, Layer::SnapLeft, -1); |
916 flexiNoteLayer->snapToFeatureFrame(m_pane, f1i, res, Layer::SnapRight); | 916 flexiNoteLayer->snapToFeatureFrame(m_pane, f1i, res, Layer::SnapRight, -1); |
917 | 917 |
918 f0 = (f0i < 0 ? 0 : f0i); | 918 f0 = (f0i < 0 ? 0 : f0i); |
919 f1 = (f1i < 0 ? 0 : f1i); | 919 f1 = (f1i < 0 ? 0 : f1i); |
920 } | 920 } |
921 | 921 |