changeset 3123:edf629d43f05

Cosmetics, docs. flys-artifacts/trunk@4724 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 20 Jun 2012 12:27:10 +0000
parents 721298eeb694
children 555ed85af32e
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/artifacts/WINFOArtifact.java:
+	  Cosmetics, doc.
+
 2012-06-20	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/artifacts/states/WDifferencesState.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);
     }
 

http://dive4elements.wald.intevation.org