changeset 6210:165086b1e66d

I1035: Fixed calculation of multiple bed height differences.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 06 Jun 2013 10:55:14 +0200
parents 1642e08d14d2
children c40acb6bfe38
files artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedDifferencesAccess.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedDifferencesAccess.java	Wed Jun 05 18:03:21 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedDifferencesAccess.java	Thu Jun 06 10:55:14 2013 +0200
@@ -52,7 +52,7 @@
         if (differenceArtifactIds == null) {
             String [] diffs = getDiffs();
             differenceArtifactIds = new String[diffs.length/2][2];
-            for (int i = 0; i < diffs.length; i += 2) {
+            for (int i = 0; i < diffs.length/2; i++) {
                 String diff1 = StringUtil.unbracket(diffs[0 + 2*i]);
                 String diff2 = StringUtil.unbracket(diffs[1 + 2*i]);
                 String[] diff1parts = diff1.split(";");
@@ -61,7 +61,7 @@
                     logger.debug("creating 2 artifacts." + diff1parts[0] + "; " + diff2parts[0]);
                 }
                 differenceArtifactIds[i][0] = diff1parts[0];
-                differenceArtifactIds[i][1] = diff1parts[1];
+                differenceArtifactIds[i][1] = diff2parts[0];
             }
         }
 

http://dive4elements.wald.intevation.org