Fix generic wxTimePickerCtrl to accept max values from keyboard
Allow entering times such as 23:59:59 which were previously mistakenly flagged as invalid due to off by one error in the comparison in the validation function.
This commit is contained in:
parent
022a725bf9
commit
0ad45d3e0e
@ -492,7 +492,7 @@ private:
|
||||
// Check if the new value is acceptable. If not, we just handle
|
||||
// this digit as if it were the first one.
|
||||
int newValue = currentValue*10 + n;
|
||||
if ( newValue < maxValue )
|
||||
if ( newValue <= maxValue )
|
||||
{
|
||||
n = newValue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user