/*
* graduated colour case, optionally with threshold
- * (treating Float.NaN as within visible range here)
+ * Float.NaN is assigned minimum visible score colour
*/
float scr = feature.getScore();
+ if (Float.isNaN(scr))
+ {
+ return getMinColour();
+ }
if (isAboveThreshold() && scr <= threshold)
{
return null;
{
return getMaxColour();
}
- if (Float.isNaN(scr))
- {
- return getMinColour();
- }
float scl = (scr - base) / range;
if (isHighToLow)
{