changeset 7014:56891f61e534

issue1465: Adjust to new use of NaN instead of 0.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 13 Sep 2013 16:10:10 +0200
parents 998a9710007e
children a9ff696c2d18
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFraction.java
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFraction.java	Fri Sep 13 16:07:46 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFraction.java	Fri Sep 13 16:10:10 2013 +0200
@@ -213,11 +213,11 @@
     /** Returns true if all fraction needed for total calculation are set. */
     public boolean isComplete() {
         return
-            getCoarse() != 0d &&
-            getFineMiddle() != 0d &&
-            getSand() != 0d &&
-            getSuspSand() != 0d &&
-            getSuspSediment() != 0d;
+            getCoarse() != Double.NaN &&
+            getFineMiddle() != Double.NaN &&
+            getSand() != Double.NaN &&
+            getSuspSand() != Double.NaN &&
+            getSuspSediment() != Double.NaN;
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org