# HG changeset patch # User Ingo Weinzierl # Date 1304331536 0 # Node ID 27f5afc4dbdea63b38c0ae8795235698d71bf7f4 # Parent 137daff2c732e919da866f8d84ea4da250ccf4dc 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 diff -r 137daff2c732 -r 27f5afc4dbde flys-client/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java, diff -r 137daff2c732 -r 27f5afc4dbde flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.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; } }