[PATCH] User smarter new interface from RangeAccess
Wald Commits
scm-commit at wald.intevation.org
Wed Apr 1 13:11:34 CEST 2015
# HG changeset patch
# User "Tom Gottfried <tom at intevation.de>"
# Date 1427886690 -7200
# Node ID 22f01b7e802e392189ec1cdc04f1b350173fedbc
# Parent 81a8e304379438e6e5ee8c1a89ce822306b1986a
User smarter new interface from RangeAccess.
diff -r 81a8e3043794 -r 22f01b7e802e artifacts/src/main/java/org/dive4elements/river/artifacts/states/minfo/BedQualityPeriodsSelect.java
--- 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());
More information about the Dive4Elements-commits
mailing list