changeset 6972:81f84960d722

Correct SedimentLoadExporters compilability-fix.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 06 Sep 2013 12:37:42 +0200
parents 164e2f2c9bea
children b4faf69ad1d0
files artifacts/src/main/java/org/dive4elements/river/exports/minfo/SedimentLoadExporter.java
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/minfo/SedimentLoadExporter.java	Thu Sep 05 19:05:00 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/minfo/SedimentLoadExporter.java	Fri Sep 06 12:37:42 2013 +0200
@@ -94,13 +94,9 @@
     protected void writeCSVData(CSVWriter writer) throws IOException {
         writeCSVHeader(writer);
 
-        //@felix: Please fix this!!!!
-        //boolean asSingleYear = toYear == 0;
-        boolean asSingleYear = true;
-
         for (SedimentLoadResult result: results) {
-            String years = asSingleYear
-                    ? result.getStartYear()+ " "
+            String years = (result.getEndYear() == 0)
+                    ? result.getStartYear() + " "
                     : result.getStartYear() + "-" + result.getEndYear();
             SedimentLoad load = result.getLoad();
             // Put load.getName()+load.getDescription()}); somewhere?

http://dive4elements.wald.intevation.org