[Dive4elements-commits] [PATCH] issue1313: Use correct skip lines. In case of recognizing skip, the

Wald Commits scm-commit at wald.intevation.org
Mon Jun 24 10:57:52 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1372064768 -7200
# Node ID 3158f8f227bf3b6497ed709f4b5fc31bd2a077e2
# Parent  24b4819ef514b64f2b6f868499a9306b1da1bff3
issue1313: Use correct skip lines. In case of recognizing skip, the
first one is skipped already.

diff -r 24b4819ef514 -r 3158f8f227bf backend/src/main/java/org/dive4elements/river/importer/parsers/PRFParser.java
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/PRFParser.java	Mon Jun 24 10:35:35 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/PRFParser.java	Mon Jun 24 11:06:08 2013 +0200
@@ -364,13 +364,13 @@
 
                 List<XY> kmData = data.get(station);
 
-                // When the station changed we know we are expecting skip/dummy lines.
+                // When the station changed (no data yet in line) we expect
+                // skip/dummy lines to follow
                 if (kmData == null) {
-                    //log.debug("found new km: " + station);
                     kmData = new ArrayList<XY>();
                     data.put(station, kmData);
                     // When a station change occurs, dummy lines will occur, too.
-                    skip = lineSkipCount;
+                    skip = lineSkipCount -1;
                     continue;
                 }
 


More information about the Dive4elements-commits mailing list