Mercurial > dive4elements > river
changeset 8595:cc1c644ed30f
(issue1755) Fix export order of multiple result columns
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 19 Mar 2015 14:21:39 +0100 |
parents | 5fe6e33666d4 |
children | b486812f4f14 |
files | artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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); }