changeset 9399:77367e8da74d

Fixed: startYear shifted by one year
author gernotbelger
date Tue, 14 Aug 2018 10:59:22 +0200
parents 929d645691ae
children 8e100593aec3
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/bundu/BunduWstWQPanel.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/bundu/BunduWstWQPanel.java	Mon Aug 13 17:27:52 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/bundu/BunduWstWQPanel.java	Tue Aug 14 10:59:22 2018 +0200
@@ -355,7 +355,7 @@
     protected void callMainValuesService(final String locale, final String river, final double start, final double end,
             final AsyncCallback<WQInfoObject[]> cb) {
 
-        final int startYear = this.bezugsjahr - this.qSeriesLength;
+        final int startYear = this.bezugsjahr - this.qSeriesLength + 1;
         final int endYear = this.bezugsjahr;
 
         this.mainValueService.getWQInfo(locale, river, start, end, startYear, endYear, cb);

http://dive4elements.wald.intevation.org