# HG changeset patch # User Felix Wolfsteller # Date 1323767583 0 # Node ID 9115b2a28be104d99aa5bf0577dcd8c6af6a8be1 # Parent d73f503f2465657ee1d845f600b48caa07c8e7e6 Fix crosssectionkmservice. flys-client/trunk@3395 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r d73f503f2465 -r 9115b2a28be1 flys-client/ChangeLog --- a/flys-client/ChangeLog Mon Dec 12 14:39:51 2011 +0000 +++ b/flys-client/ChangeLog Tue Dec 13 09:13:03 2011 +0000 @@ -1,3 +1,10 @@ +2011-12-13 Felix Wolfsteller + + Fix CrossSectionKMService. + + * src/main/java/de/intevation/flys/client/server/CrossSectionKMServiceImpl.java: + Use correct, badly named looping index. + 2011-12-12 Ingo Weinzierl * src/main/java/de/intevation/flys/client/client/ui/map/MapPositionPanel.java: diff -r d73f503f2465 -r 9115b2a28be1 flys-client/src/main/java/de/intevation/flys/client/server/CrossSectionKMServiceImpl.java --- a/flys-client/src/main/java/de/intevation/flys/client/server/CrossSectionKMServiceImpl.java Mon Dec 12 14:39:51 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/CrossSectionKMServiceImpl.java Tue Dec 13 09:13:03 2011 +0000 @@ -107,7 +107,7 @@ NodeList lineNodes = csElement.getElementsByTagName("line"); int numLines = lineNodes.getLength(); for (int k = 0; k < numLines; k++) { - Element line = (Element) lineNodes.item(i); + Element line = (Element) lineNodes.item(k); double d = Double.parseDouble(line.getAttribute("km")); kms.add(d); }