commit e5cae37853ca71de16258dccf26ca9c18399eb56
Author: Jean-Marc <[email protected]>
Date:   Sat Sep 12 18:14:28 2015 +0200

    error is always true at this point
    
    Coverity issue 23294.

diff --git a/src/TextClass.cpp b/src/TextClass.cpp
index 6027a23..a729fb5 100644
--- a/src/TextClass.cpp
+++ b/src/TextClass.cpp
@@ -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_

Reply via email to