commit b7082f2d291ea96bee867d69e5346da0aadf547e
Author: Kornel Benko <[email protected]>
Date: Tue Aug 1 13:08:07 2017 +0200
Correctly interpret return value of LyXRC::read(FileName const & filename,
bool check_format)
---
src/LyXRC.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp
index 27d5fcf..3a8328b 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());
}