This commit is contained in:
Juergen Spitzmueller 2022-03-17 08:16:54 +01:00
parent 0f80de308c
commit a89ff030cf

View File

@ -60,7 +60,7 @@ QValidator::State LengthValidator::validate(QString & qtext, int &) const
// A plausible intermediate value, see #12508
return QValidator::Intermediate;
if (ok && positive_ && d <=0)
if (ok && positive_ && d < 0)
return QValidator::Invalid;
if (qtext.isEmpty() || (ok && !dp))