]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Keep dialog connected to cross-ref inset after Apply.
[lyx.git] / src / Buffer.cpp
index 40c91b8ce9b75c4addbe0f29c23f5d515d6c5eba..12af84f3e645c9f6fb53538aa6dc62ae9f871824 100644 (file)
@@ -1006,7 +1006,7 @@ int Buffer::readHeader(Lexer & lex)
 
        params().shell_escape = theSession().shellescapeFiles().find(absFileName());
 
-       params().makeDocumentClass();
+       params().makeDocumentClass(isClone(), isInternal());
 
        return unknown_tokens;
 }
@@ -1471,7 +1471,7 @@ bool Buffer::save() const
        // proper location once that has been done successfully. that
        // way we preserve the original file if something goes wrong.
        string const justname = fileName().onlyFileNameWithoutExt();
-       auto tempfile = make_unique<TempFile>(fileName().onlyPath(),
+       auto tempfile = lyx::make_unique<TempFile>(fileName().onlyPath(),
                                              justname + "-XXXXXX.lyx");
        bool const symlink = fileName().isSymLink();
        if (!symlink)