changeset 7309:a6ceb4b333c3

SedimentDensity: Fix getAllDensities and made it public.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 14 Oct 2013 11:48:38 +0200
parents a4b4c620e611
children 7a7ce43ddd3f
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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++;
         }
 

http://dive4elements.wald.intevation.org