Mercurial > dive4elements > river
changeset 234:27f5afc4dbde
Bugfix: the WQ panel now returns the correct step width value if the range mode is selected.
flys-client/trunk@1786 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 02 May 2011 10:18:56 +0000 |
parents | 137daff2c732 |
children | d3f8d6966c20 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java |
diffstat | 2 files changed, 10 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Fri Apr 29 10:12:02 2011 +0000 +++ b/flys-client/ChangeLog Mon May 02 10:18:56 2011 +0000 @@ -1,3 +1,9 @@ +2011-05-02 Ingo Weinzierl <ingo@intevation.de> + + * src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java: + Bugfix: The WQ panel now returns the correct step width value if the + range mode is selected. + 2011-04-29 Raimund Renkert <rrenkert@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java Fri Apr 29 10:12:02 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java Mon May 02 10:18:56 2011 +0000 @@ -506,19 +506,12 @@ boolean rangeMode = isRangeMode(); if (rangeMode) { - // we have no field to enter the 'step' attribute in the - // range mode - return 0.0; + return wMode ? getStepW() : getStepQ(); } else { - if (wMode) { - return getStepW(); - } - else { - // we have no field to enter the 'step' attribute in the - // range mode - return getStepQ(); - } + // we have no field to enter the 'step' attribute in the + // single mode + return 0d; } }