# HG changeset patch # User Chris Cannam # Date 1478277899 0 # Node ID 081c7ebf1fea0a2cb6e7b97be86230cf81555264 # Parent 436df5f24bdacebfa7088f4d5a5eb9a24f26eadf Fix omitted topmost bin diff -r 436df5f24bda -r 081c7ebf1fea layer/Colour3DPlotRenderer.cpp --- a/layer/Colour3DPlotRenderer.cpp Fri Nov 04 16:32:41 2016 +0000 +++ b/layer/Colour3DPlotRenderer.cpp Fri Nov 04 16:44:59 2016 +0000 @@ -758,6 +758,11 @@ int nbins = int(binfory[h-1]) - minbin + 1; if (minbin + nbins > sh) nbins = sh - minbin; + +#ifdef DEBUG_COLOUR_PLOT_REPAINT + cerr << "minbin = " << minbin << ", nbins = " << nbins << ", last binfory = " + << binfory[h-1] << " (model height " << sh << ")" << endl; +#endif int psx = -1; @@ -821,7 +826,7 @@ usePeaksCache); magRange.sample(column); - + if (m_params.binDisplay == BinDisplay::PeakBins) { column = ColumnOp::peakPick(column); }