changeset 6209:1642e08d14d2

Fix empty column logic in FixAT export This fixes issue1155
author Andre Heinecke <aheinecke@intevation.de>
date Wed, 05 Jun 2013 18:03:21 +0200
parents 715e010d40de
children 165086b1e66d
files artifacts/src/main/java/org/dive4elements/river/exports/fixings/FixATWriter.java
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 (;;) {

http://dive4elements.wald.intevation.org