[PATCH 1 of 5] SedimentDensity: Fix getAllDensities and made it public
Wald Commits
scm-commit at wald.intevation.org
Mon Oct 14 12:09:23 CEST 2013
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1381744118 -7200
# Node ID a6ceb4b333c38324d187e9c9aac25b6338cb8b9a
# Parent a4b4c620e61140c421fd29a58077a0738c2e4bdb
SedimentDensity: Fix getAllDensities and made it public.
diff -r a4b4c620e611 -r a6ceb4b333c3 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java Mon Oct 14 10:01:33 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java Mon Oct 14 11:48:38 2013 +0200
@@ -94,7 +94,7 @@
}
/** Get (sorted) map of km to density of all years. */
- protected double[][] getAllDensities()
+ public double[][] getAllDensities()
{
TreeMap<Double, Double> map = new TreeMap<Double,Double>();
for (int year: years) {
@@ -106,7 +106,7 @@
int i = 0;
for (Map.Entry<Double, Double> kmDens: map.entrySet()) {
points[0][i] = kmDens.getKey();
- points[2][i] = kmDens.getValue();
+ points[1][i] = kmDens.getValue();
i++;
}
More information about the Dive4elements-commits
mailing list