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:
Kevin Ollivier
2017-11-09 15:02:49 -08:00
committed by VZ
parent 022a725bf9
commit 0ad45d3e0e

View File

@@ -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;