Mercurial > dive4elements > river
comparison flys-backend/src/main/java/de/intevation/flys/importer/AtFileParser.java @ 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 | ee693b8fbb55 |
children | 6dc847194625 |
comparison
equal
deleted
inserted
replaced
761:3170fe2e7661 | 762:23fe9ac1c3b4 |
---|---|
107 | 107 |
108 /* shift is used to differenciate between lines with | 108 /* shift is used to differenciate between lines with |
109 * exactly 10 Qs and lines with less than 10 Qs. The shift | 109 * exactly 10 Qs and lines with less than 10 Qs. The shift |
110 * is only modified when it is the first line. | 110 * is only modified when it is the first line. |
111 */ | 111 */ |
112 int shift = 0; | 112 int shift = -1; |
113 | 113 |
114 if (splits.length != 11 && beginning) { | 114 if (splits.length != 11 && beginning) { |
115 shift = 11 - splits.length; | 115 shift = 10 - splits.length; |
116 } | 116 } |
117 | 117 |
118 | 118 |
119 for (int i = 1; i < splits.length; i++) { | 119 for (int i = 1; i < splits.length; i++) { |
120 double iW = W + shift + i; | 120 double iW = W + shift + i; |