[Dive4elements-commits] [PATCH 1 of 2] Fixed bed quality data facet index to get the correct diameter

Wald Commits scm-commit at wald.intevation.org
Tue Jun 18 09:10:26 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1371539348 -7200
# Node ID 673e146e779378b79757e7d24027bcc80b35508f
# Parent  4c791a458305804a5ecbcd78aa4ab93872f7743c
Fixed bed quality data facet index to get the correct diameter.

diff -r 4c791a458305 -r 673e146e7793 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedloadDiameterDataFacet.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedloadDiameterDataFacet.java	Mon Jun 17 21:51:04 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedloadDiameterDataFacet.java	Tue Jun 18 09:09:08 2013 +0200
@@ -35,7 +35,7 @@
         D4EArtifact d4e = (D4EArtifact) artifact;
         BedQualityAccess access = new BedQualityAccess(d4e, context);
         int ndx = getIndex() & 7;
-        int diam = (getIndex() >> 3);
+        int diam = (getIndex() >> 4);
         String diameter = "";
         switch (diam) {
             case 1: diameter = "d10"; break;


More information about the Dive4elements-commits mailing list