changeset 1247:c72d78d7890a

Ensure threshold is equal to minValue; default of 0 is inadequate when minValue < 0 (fixes bug that made all negative values appear black)
author Chris Cannam
date Tue, 28 Feb 2017 14:07:34 +0000
parents f7ebb72c5e12
children fc40742bb911
files layer/Colour3DPlotLayer.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;