error is always true at this point

Coverity issue 23294.
This commit is contained in:
Jean-Marc 2015-09-12 18:14:28 +02:00
parent eba0bbe503
commit e5cae37853

View File

@ -802,7 +802,7 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt)
return ERROR;
if (rt != BASECLASS)
return (error ? ERROR : OK);
return OK;
if (defaultlayout_.empty()) {
LYXERR0("Error: Textclass '" << name_