[PATCH 5 of 5] (issue1755) Do not print empty rows for empty results in bedquality export
Wald Commits
scm-commit at wald.intevation.org
Fri Mar 27 17:31:24 CET 2015
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1427473628 -3600
# Node ID 0d15ebafbd0ec452833b1e9f15afe5091c7f5da6
# Parent 97d60b0afe24c5876586c28a68910d9d0af88c63
(issue1755) Do not print empty rows for empty results in bedquality export
diff -r 97d60b0afe24 -r 0d15ebafbd0e artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java Fri Mar 27 17:26:34 2015 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java Fri Mar 27 17:27:08 2015 +0100
@@ -55,6 +55,9 @@
for (BedQualityResult result: results) {
cols += result.getValues().size();
}
+ if (cols == 1) {
+ return new ArrayList<double[]>();
+ }
List<double[]> rows = new ArrayList<double[]>(kms.length);
for (double km: kms) {
More information about the Dive4Elements-commits
mailing list