comparison layer/Colour3DPlotLayer.cpp @ 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 b0b5776d2156
comparison
equal deleted inserted replaced
1246:f7ebb72c5e12 1247:c72d78d7890a
1031 1031
1032 if (maxValue <= minValue) { 1032 if (maxValue <= minValue) {
1033 maxValue = minValue + 0.1f; 1033 maxValue = minValue + 0.1f;
1034 } 1034 }
1035 1035
1036 cparams.threshold = minValue;
1036 cparams.minValue = minValue; 1037 cparams.minValue = minValue;
1037 cparams.maxValue = maxValue; 1038 cparams.maxValue = maxValue;
1038 1039
1039 m_lastRenderedMags[viewId] = MagnitudeRange(float(minValue), 1040 m_lastRenderedMags[viewId] = MagnitudeRange(float(minValue),
1040 float(maxValue)); 1041 float(maxValue));