Mercurial > hg > svgui
comparison layer/SpectrumLayer.cpp @ 1396:2e316a724336
Fix compiler warning
author | Chris Cannam |
---|---|
date | Wed, 14 Nov 2018 14:29:08 +0000 |
parents | 4a36f6130056 |
children | 9ea551137329 |
comparison
equal
deleted
inserted
replaced
1395:32bbb86094c3 | 1396:2e316a724336 |
---|---|
783 double value = fft->getValueAt(col, bin); | 783 double value = fft->getValueAt(col, bin); |
784 if (value < thresh) continue; | 784 if (value < thresh) continue; |
785 if (bin < cs) value *= curve[bin]; | 785 if (bin < cs) value *= curve[bin]; |
786 | 786 |
787 double norm = 0.f; | 787 double norm = 0.f; |
788 // we need the norm here for colour map; the y coord is | 788 // we only need the norm here, for the colour map |
789 // only used to pick a label height if illuminating the | 789 (void)getYForValue(v, value, norm); |
790 // local point | |
791 double y = getYForValue(v, value, norm); | |
792 | 790 |
793 QColor colour = mapper.map(norm); | 791 QColor colour = mapper.map(norm); |
794 | 792 |
795 paint.setPen(QPen(colour, 1)); | 793 paint.setPen(QPen(colour, 1)); |
796 paint.drawLine(x, 0, x, v->getPaintHeight() - scaleHeight - 1); | 794 paint.drawLine(x, 0, x, v->getPaintHeight() - scaleHeight - 1); |