Do not attempt to set default master if we already have a parent

This commit is contained in:
Juergen Spitzmueller 2013-11-23 16:51:16 +01:00
parent 40de22a629
commit cb699fbc1c

View File

@ -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())) {