Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/WstValueTable.java @ 7015:a9ff696c2d18
Fixed misuse of x !=/== Double.NaN
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 13 Sep 2013 17:42:09 +0200 |
parents | 7a7cb22395b4 |
children | c9b8ad659d5b |
comparison
equal
deleted
inserted
replaced
7014:56891f61e534 | 7015:a9ff696c2d18 |
---|---|
975 | 975 |
976 Row startRow = rows.get(rowIndex); | 976 Row startRow = rows.get(rowIndex); |
977 | 977 |
978 for (int col = 0; col < columns.length; col++) { | 978 for (int col = 0; col < columns.length; col++) { |
979 qs[col] = columns[col].getQRangeTree().findQ(km); | 979 qs[col] = columns[col].getQRangeTree().findQ(km); |
980 if (startRow.km == km && startRow.ws[col] != Double.NaN) { | 980 if (startRow.km == km && !Double.isNaN(startRow.ws[col])) { |
981 // Great. W is defined at km. | 981 // Great. W is defined at km. |
982 ws[col] = startRow.ws[col]; | 982 ws[col] = startRow.ws[col]; |
983 continue; | 983 continue; |
984 } | 984 } |
985 | 985 |