mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
0 is a plausible intermediate length in positive context (#12508)
This commit is contained in:
parent
2e9c962a24
commit
0f80de308c
@ -56,6 +56,10 @@ QValidator::State LengthValidator::validate(QString & qtext, int &) const
|
||||
if (ok && unsigned_ && d < 0)
|
||||
return QValidator::Invalid;
|
||||
|
||||
if (ok && positive_ && d == 0)
|
||||
// A plausible intermediate value, see #12508
|
||||
return QValidator::Intermediate;
|
||||
|
||||
if (ok && positive_ && d <=0)
|
||||
return QValidator::Invalid;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user