diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 27d5fcf3a0..3a8328b0e4 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -460,7 +460,7 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format) FileName const tmp = libFileSearch(string(), lexrc.getString()); - if (read(tmp, check_format)) { + if (!read(tmp, check_format)) { lexrc.printError( "Error reading included file: " + tmp.absFileName()); }