changeset 762:23fe9ac1c3b4

Fix for flys/issue110: Start index was shifted by one. flys-backend/trunk@2120 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 14 Jun 2011 17:30:09 +0000
parents 3170fe2e7661
children 8076f6a689d0
files flys-backend/ChangeLog flys-backend/src/main/java/de/intevation/flys/importer/AtFileParser.java
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/ChangeLog	Tue Jun 14 13:55:49 2011 +0000
+++ b/flys-backend/ChangeLog	Tue Jun 14 17:30:09 2011 +0000
@@ -1,3 +1,8 @@
+2011-06-14	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* src/main/java/de/intevation/flys/importer/AtFileParser.java:
+	  Fix for flys/issue110. start index was shifted by one.
+
 2011-06-14	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/importer/ImportAnnotation.java:
--- a/flys-backend/src/main/java/de/intevation/flys/importer/AtFileParser.java	Tue Jun 14 13:55:49 2011 +0000
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/AtFileParser.java	Tue Jun 14 17:30:09 2011 +0000
@@ -109,10 +109,10 @@
                  * exactly 10 Qs and lines with less than 10 Qs. The shift
                  * is only modified when it is the first line.
                  */
-                int shift = 0;
+                int shift = -1;
 
                 if (splits.length != 11 && beginning) {
-                    shift = 11 - splits.length;
+                    shift = 10 - splits.length;
                 }
 
 

http://dive4elements.wald.intevation.org