[PATCH 1 of 2] (issue1754) Do not switch W and Km data when Range filtering WKms

Wald Commits scm-commit at wald.intevation.org
Tue Mar 31 17:28:33 CEST 2015


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1427815640 -7200
# Node ID dcdccd59c3bec3da3f2b69e78cd81ccf1357279d
# Parent  7d86194661c3a7a1bc87ee4cb8bbdf49f1eeb93b
(issue1754) Do not switch W and Km data when Range filtering WKms

diff -r 7d86194661c3 -r dcdccd59c3be artifacts/src/main/java/org/dive4elements/river/artifacts/model/WKmsImpl.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WKmsImpl.java	Tue Mar 31 15:16:12 2015 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WKmsImpl.java	Tue Mar 31 17:27:20 2015 +0200
@@ -115,7 +115,7 @@
         for (int i = 0; i < size(); i++) {
             double km = kms.getQuick(i);
             if (km >= from && km <= to) {
-                retval.add(ws.getQuick(i), km);
+                retval.add(km, getW(i));
             }
         }
         return retval;


More information about the Dive4Elements-commits mailing list