Mercurial > hg > svgui
diff layer/SpectrogramLayer.cpp @ 1239:a496986aa61b
Fix #1792 measure tool crosshairs rendered in wrong colour. Also extend crosshairs over the no-man's-land at the left
author | Chris Cannam |
---|---|
date | Tue, 21 Feb 2017 11:12:07 +0000 |
parents | 81dfe06a45c9 |
children | b10bd0611d16 |
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp Tue Feb 07 14:55:19 2017 +0000 +++ b/layer/SpectrogramLayer.cpp Tue Feb 21 11:12:07 2017 +0000 @@ -1516,6 +1516,9 @@ smoothing == Preferences::SpectrogramZeroPaddedAndInterpolated); m_renderers[viewId] = new Colour3DPlotRenderer(sources, params); + + m_crosshairColour = + ColourMapper(m_colourMap, 1.f, 255.f).getContrastingColour(); } return m_renderers[viewId];