comparison 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
comparison
equal deleted inserted replaced
233:137daff2c732 234:27f5afc4dbde
504 protected double getFinalStep() { 504 protected double getFinalStep() {
505 boolean wMode = isWMode(); 505 boolean wMode = isWMode();
506 boolean rangeMode = isRangeMode(); 506 boolean rangeMode = isRangeMode();
507 507
508 if (rangeMode) { 508 if (rangeMode) {
509 return wMode ? getStepW() : getStepQ();
510 }
511 else {
509 // we have no field to enter the 'step' attribute in the 512 // we have no field to enter the 'step' attribute in the
510 // range mode 513 // single mode
511 return 0.0; 514 return 0d;
512 }
513 else {
514 if (wMode) {
515 return getStepW();
516 }
517 else {
518 // we have no field to enter the 'step' attribute in the
519 // range mode
520 return getStepQ();
521 }
522 } 515 }
523 } 516 }
524 517
525 518
526 /** 519 /**

http://dive4elements.wald.intevation.org