Mercurial > hg > svgui
diff layer/Colour3DPlotRenderer.cpp @ 1133:b4b155cfd8b4 spectrogram-minor-refactor
Fix vertical zoom/scroll in colour 3d plot layer
author | Chris Cannam |
---|---|
date | Tue, 02 Aug 2016 11:42:24 +0100 |
parents | ee98d587cd1a |
children | 628cd329c241 |
line wrap: on
line diff
--- a/layer/Colour3DPlotRenderer.cpp Tue Aug 02 11:14:59 2016 +0100 +++ b/layer/Colour3DPlotRenderer.cpp Tue Aug 02 11:42:24 2016 +0100 @@ -330,9 +330,9 @@ const int buflen = 40; char labelbuf[buflen]; - int minbin = 0; //!!! - int maxbin = sh - 1; //!!! - + int minbin = m_sources.verticalBinLayer->getIBinForY(v, h); + int maxbin = m_sources.verticalBinLayer->getIBinForY(v, 0) + 1; + int psx = -1; vector<float> preparedColumn;