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:
@@ -492,7 +492,7 @@ private:
|
|||||||
// Check if the new value is acceptable. If not, we just handle
|
// Check if the new value is acceptable. If not, we just handle
|
||||||
// this digit as if it were the first one.
|
// this digit as if it were the first one.
|
||||||
int newValue = currentValue*10 + n;
|
int newValue = currentValue*10 + n;
|
||||||
if ( newValue < maxValue )
|
if ( newValue <= maxValue )
|
||||||
{
|
{
|
||||||
n = newValue;
|
n = newValue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user