]> git.lyx.org Git - lyx.git/commitdiff
Correctly interpret return value of LyXRC::read(FileName const & filename, bool check...
authorKornel Benko <kornel@lyx.org>
Tue, 1 Aug 2017 11:08:07 +0000 (13:08 +0200)
committerKornel Benko <kornel@lyx.org>
Tue, 1 Aug 2017 11:08:07 +0000 (13:08 +0200)
src/LyXRC.cpp

index 27d5fcf3a0a68e7683ee6b5f668231850125354a..3a8328b0e45ee672d4a15cb9185777a3d8cf6e4c 100644 (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());
                                }