[PATCH] Fixed: startYear shifted by one year

Wald Commits scm-commit at wald.intevation.org
Tue Aug 14 10:59:35 CEST 2018


# HG changeset patch
# User gernotbelger
# Date 1534237162 -7200
# Node ID 77367e8da74d5077a5ff30670acba87a8ab78498
# Parent  929d645691aea6d75d956bb304b2c469d69f01b6
Fixed: startYear shifted by one year

diff -r 929d645691ae -r 77367e8da74d gwt-client/src/main/java/org/dive4elements/river/client/client/ui/bundu/BunduWstWQPanel.java
--- 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);


More information about the Dive4Elements-commits mailing list