diff --git a/src/generic/timectrlg.cpp b/src/generic/timectrlg.cpp index 445446e511..6a3033cd0c 100644 --- a/src/generic/timectrlg.cpp +++ b/src/generic/timectrlg.cpp @@ -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;