]> git.lyx.org Git - features.git/commitdiff
error is always true at this point
authorJean-Marc <lasgouttes@lyx.org>
Sat, 12 Sep 2015 16:14:28 +0000 (18:14 +0200)
committerJean-Marc <lasgouttes@lyx.org>
Sat, 12 Sep 2015 16:14:28 +0000 (18:14 +0200)
Coverity issue 23294.

src/TextClass.cpp

index 6027a2358302f40cfafeb830b492f814326b3bf4..a729fb58ae0e114e8b5d542213c256e1dc4d3c0e 100644 (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_