Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java @ 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 | b92281182c6b |
children | d12078053b59 |
line wrap: on
line diff
--- 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; } }