JAL-2295 correct test for Float.isNaN(score) !
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 11 Nov 2016 08:50:02 +0000 (08:50 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 11 Nov 2016 08:50:02 +0000 (08:50 +0000)
src/jalview/ext/rbvi/chimera/ChimeraCommands.java

index 9ef89fd..3415815 100644 (file)
@@ -415,7 +415,7 @@ public class ChimeraCommands
           value = type;
         }
         float score = sf.getScore();
-        if (score != 0f && score != Float.NaN)
+        if (score != 0f && !Float.isNaN(score))
         {
           value = Float.toString(score);
         }