[Dive4elements-commits] [PATCH 10 of 12] Don't print two header at calculated gauges

Wald Commits scm-commit at wald.intevation.org
Wed Jun 12 17:47:23 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1371051956 -7200
# Node ID 3ac657d60e60676415d8b84595ccb45e49dd0622
# Parent  ebba1a795d76621671493faa16dc381156e9fe39
Don't print two header at calculated gauges

diff -r ebba1a795d76 -r 3ac657d60e60 artifacts/src/main/java/org/dive4elements/river/exports/ATWriter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ATWriter.java	Wed Jun 12 17:45:35 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/ATWriter.java	Wed Jun 12 17:45:56 2013 +0200
@@ -192,9 +192,10 @@
         // A header is required, because the desktop version of FLYS will skip
         // the first row.
         if (gName != null) {
-            printGaugeHeader(out, meta, river, km, gName, datum, date, unit);
             if (isCalculation) {
                 printCalculatedGaugeHeader(out, meta, river, km, gName, datum, date, unit);
+            } else {
+                printGaugeHeader(out, meta, river, km, gName, datum, date, unit);
             }
         }
         else {


More information about the Dive4elements-commits mailing list