[PATCH 3 of 4] BedQualityExporter: Fix ancient i/j variable mix-up

Wald Commits scm-commit at wald.intevation.org
Thu Nov 28 10:46:10 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1385630073 -3600
# Node ID 61940bae77b5c712614640668e8c285dc5e8e127
# Parent  a11985bb743fc00fad43e1db29e7375f712b7e59
BedQualityExporter: Fix ancient i/j variable mix-up.

diff -r a11985bb743f -r 61940bae77b5 artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java	Thu Nov 28 10:13:53 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java	Thu Nov 28 10:14:33 2013 +0100
@@ -76,7 +76,7 @@
             }
             BedloadDiameterResult[] loads = results[i].getBedloadResults();
             for (int j = 0; j < loads.length; j++) {
-                TDoubleArrayList lkms = loads[i].getKms();
+                TDoubleArrayList lkms = loads[j].getKms();
                 for (int k = 0, L = lkms.size(); k < L; k++) {
                     double km = lkms.get(k);
                     if (!kms.contains(km)) { // XXX: O(N^2)


More information about the Dive4elements-commits mailing list