changeset 8652:22f01b7e802e

User smarter new interface from RangeAccess.
author "Tom Gottfried <tom@intevation.de>"
date Wed, 01 Apr 2015 13:11:30 +0200
parents 81a8e3043794
children dbec49147f54
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityPeriodsSelect.java
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityPeriodsSelect.java	Tue Mar 31 17:28:27 2015 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityPeriodsSelect.java	Wed Apr 01 13:11:30 2015 +0200
@@ -60,14 +60,8 @@
     protected Long[] getDataMinMaxDate(Artifact artifact) {
         D4EArtifact arti = (D4EArtifact) artifact;
         RangeAccess access = new RangeAccess(arti);
-        double a = access.getFrom();
-        double b = access.getTo();
-
-        if (a > b) {
-            double buf = a;
-            a = b;
-            b = buf;
-        }
+        double a = access.getFrom(true);
+        double b = access.getTo(true);
 
         BedOverview overview = BedOverviewFactory.getOverview(access.getRiverName());
         BedloadOverview overview2 = BedloadOverviewFactory.getOverview(access.getRiverName());

http://dive4elements.wald.intevation.org