From cb699fbc1c540006bae16ff62f0b48dce52a5520 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 23 Nov 2013 16:51:16 +0100 Subject: [PATCH] Do not attempt to set default master if we already have a parent --- src/Buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())) {