# HG changeset patch # User Andre Heinecke # Date 1385719951 -3600 # Node ID 3e3a4f44423a8fce138170b42bac6ea187ddc8a4 # Parent 505737373ba45bec5f29533ce96fa65476a93079 (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. diff -r 505737373ba4 -r 3e3a4f44423a artifacts/src/main/java/org/dive4elements/river/exports/WaterlevelExporter.java --- 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)); } }