PDA

View Full Version : [FIXED] zero is not allowed with NumberField.setAllowNegative(false)



yopiyop
9 Jun 2008, 1:31 AM
and the error label is not correct if the value is '0'.

thx.
David

darrellmeyer
9 Jun 2008, 11:38 AM
The default minValue was using Double.MIN_VALUE which is not negative and therefore, 0 was not allowed. This has been changed to Double.NEGATIVE_INFINITY. The error message is correct, however, in most cases, you will have specified the appropriate min value which will be displayed. The fix is in SVN.