Correctly interpret return value of LyXRC::read(FileName const & filename, bool check_format)

This commit is contained in:
Kornel Benko 2017-08-01 13:08:07 +02:00
parent 322f11137a
commit b7082f2d29

View File

@ -460,7 +460,7 @@ LyXRC::ReturnValues LyXRC::read(Lexer & lexrc, bool check_format)
FileName const tmp = FileName const tmp =
libFileSearch(string(), libFileSearch(string(),
lexrc.getString()); lexrc.getString());
if (read(tmp, check_format)) { if (!read(tmp, check_format)) {
lexrc.printError( lexrc.printError(
"Error reading included file: " + tmp.absFileName()); "Error reading included file: " + tmp.absFileName());
} }