mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
* Validator.cpp:
- get rid of unnecessary conversion. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26451 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7a7eede980
commit
7abd4dac66
@ -92,8 +92,7 @@ LengthAutoValidator::LengthAutoValidator(QWidget * parent)
|
||||
|
||||
QValidator::State LengthAutoValidator::validate(QString & qtext, int & dummy) const
|
||||
{
|
||||
string const text = fromqstr(qtext);
|
||||
if (text == "auto")
|
||||
if (qtext == "auto")
|
||||
return QValidator::Acceptable;
|
||||
return LengthValidator::validate(qtext, dummy);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user