diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 0ac68c8db7..b8719cbf16 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -933,7 +933,7 @@ bool Buffer::readDocument(Lexer & lex) } } - if (!params().master.empty()) { + if (!parent() && !params().master.empty()) { FileName const master_file = makeAbsPath(params().master, onlyPath(absFileName())); if (isLyXFileName(master_file.absFileName())) {