]> git.lyx.org Git - features.git/commitdiff
Amend 0f80de308c67
authorJuergen Spitzmueller <spitz@lyx.org>
Thu, 17 Mar 2022 07:16:54 +0000 (08:16 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Thu, 17 Mar 2022 07:16:54 +0000 (08:16 +0100)
src/frontends/qt/Validator.cpp

index 1ef90ac2c86f86156c4d3eb7a9cb714378601b03..ad1c4f6d555307265498eec81fce045f972658c0 100644 (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))