changeset 7614:3e3a4f44423a

(issue1620) Print the real official Q value instead of the first The assumption Q=Q becomes false if there are more then one waterlevels to be exported and only one of them has an official value.
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 29 Nov 2013 11:12:31 +0100
parents 505737373ba4
children edb323a4c286
files artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java	Thu Nov 28 10:16:55 2013 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java	Fri Nov 29 11:12:31 2013 +0100
@@ -830,7 +830,7 @@
                 double km = entry.getKey().doubleValue();
                 int idx = officialKms.indexOf(km);
                 if (idx != -1) {
-                    entry.getValue().add(wqkms.getW(idx), entry.getValue().getQ(0));
+                    entry.getValue().add(wqkms.getW(idx), wqkms.getQ(idx));
                 }
             }
 

http://dive4elements.wald.intevation.org