# HG changeset patch # User Felix Wolfsteller # Date 1340195230 0 # Node ID edf629d43f05efca809a2b0ff1cf92f43d13f835 # Parent 721298eeb6948a7a9d19428c6bbdf9c4ba395ae6 Cosmetics, docs. flys-artifacts/trunk@4724 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 721298eeb694 -r edf629d43f05 flys-artifacts/ChangeLog --- a/flys-artifacts/ChangeLog Wed Jun 20 12:23:11 2012 +0000 +++ b/flys-artifacts/ChangeLog Wed Jun 20 12:27:10 2012 +0000 @@ -1,3 +1,8 @@ +2012-06-20 Felix Wolfsteller + + * src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java: + Cosmetics, doc. + 2012-06-20 Felix Wolfsteller * src/main/java/de/intevation/flys/artifacts/states/WDifferencesState.java: diff -r 721298eeb694 -r edf629d43f05 flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java --- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Wed Jun 20 12:23:11 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java Wed Jun 20 12:27:10 2012 +0000 @@ -722,6 +722,9 @@ /** * Get points of line describing the surface of water at cross section. * + * @param idx Index for getWaterlevelData. + * @param csl The profile/surface to fill with water. + * * @return an array holding coordinates of points of surface of water ( * in the form {{x1, x2} {y1, y2}} ). */ @@ -738,7 +741,7 @@ return Lines.createWaterLines(points, 0.0f); } - if (wqkms.length < idx) { + if (wqkms.length <= idx) { logger.error("getWaterLines() requested index (" + idx + " not found."); } @@ -767,6 +770,7 @@ last_w = triple.getW(i); old_dist_wish = diff; } + return Lines.createWaterLines(points, last_w); }