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 =
libFileSearch(string(),
lexrc.getString());
if (read(tmp, check_format)) {
if (!read(tmp, check_format)) {
lexrc.printError(
"Error reading included file: " + tmp.absFileName());
}