# HG changeset patch # User Chris Cannam # Date 1488290854 0 # Node ID c72d78d7890ab018a58851eb706449f383e5da63 # Parent f7ebb72c5e1240eecd6cf5ce7b6f87d3fda4b8d5 Ensure threshold is equal to minValue; default of 0 is inadequate when minValue < 0 (fixes bug that made all negative values appear black) diff -r f7ebb72c5e12 -r c72d78d7890a layer/Colour3DPlotLayer.cpp --- a/layer/Colour3DPlotLayer.cpp Tue Feb 28 14:06:49 2017 +0000 +++ b/layer/Colour3DPlotLayer.cpp Tue Feb 28 14:07:34 2017 +0000 @@ -1033,6 +1033,7 @@ maxValue = minValue + 0.1f; } + cparams.threshold = minValue; cparams.minValue = minValue; cparams.maxValue = maxValue;