Mercurial > dive4elements > river
changeset 8640:0d15ebafbd0e
(issue1755) Do not print empty rows for empty results in bedquality export
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 27 Mar 2015 17:27:08 +0100 |
parents | 97d60b0afe24 |
children | c851d1ea543a |
files | artifacts/src/main/java/org/dive4elements/river/exports/minfo/BedQualityExporter.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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) {