[Dive4elements-commits] [PATCH 3 of 3] Fix empty column logic in FixAT export

Wald Commits scm-commit at wald.intevation.org
Wed Jun 5 18:03:43 CEST 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1370448201 -7200
# Node ID 1642e08d14d251a83940907f597d69bcf5e7d647
# Parent  715e010d40defd9f4074343f1485460a7e51aa57
Fix empty column logic in FixAT export

    This fixes issue1155

diff -r 715e010d40de -r 1642e08d14d2 artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixATWriter.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixATWriter.java	Wed Jun 05 18:02:39 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixATWriter.java	Wed Jun 05 18:03:21 2013 +0200
@@ -118,11 +118,8 @@
 
         out.printf(Locale.US, "%8d", wRow);
 
-        if (wcm > 0) {
-            int rest = 10 - wcm;
-            while (rest-- > 0) {
-                out.print(ATWriter.EMPTY);
-            }
+        for (int i = 0; i < wcm; i++) {
+            out.print(ATWriter.EMPTY);
         }
 
         for (;;) {


More information about the Dive4elements-commits mailing list