changeset 1434:9115b2a28be1

Fix crosssectionkmservice. flys-client/trunk@3395 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 13 Dec 2011 09:13:03 +0000
parents d73f503f2465
children f6fbfdc813f0
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/server/CrossSectionKMServiceImpl.java
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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	<felix.wolfsteller@intevation.de>
+
+	Fix CrossSectionKMService.
+
+	* src/main/java/de/intevation/flys/client/server/CrossSectionKMServiceImpl.java:
+	  Use correct, badly named looping index.
+
 2011-12-12  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/map/MapPositionPanel.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);
                     }

http://dive4elements.wald.intevation.org