[PATCH] (issue1755) Fix export order of multiple result columns
Wald Commits
scm-commit at wald.intevation.org
Thu Mar 19 14:21:45 CET 2015
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1426771299 -3600
# Node ID cc1c644ed30fd012791e5ea25d6afb6134634625
# Parent 5fe6e33666d4b5bf1f47b5fc23c9852f7f0e4629
(issue1755) Fix export order of multiple result columns
diff -r 5fe6e33666d4 -r cc1c644ed30f artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java Thu Mar 19 14:03:47 2015 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java Thu Mar 19 14:21:39 2015 +0100
@@ -60,11 +60,13 @@
for (double km: kms) {
double[] row = new double[cols];
row[0] = km;
+ int resultOffset = 1;
for (BedQualityResult result: results) {
- int i = 1;
+ int i = resultOffset;
for (BedQualityResultValue value: result.getValues()) {
row[i++] = value.getDataInterpolated(km);
}
+ resultOffset = i;
}
rows.add(row);
}
More information about the Dive4Elements-commits
mailing list