]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Fix a copy-paste error introduced in b754fb02
[lyx.git] / src / Buffer.cpp
index 5c4f1db9b65f2ede076f48f16b4b03f545d6e482..d5e337603c58d734500a905bf46824cacf3b4e87 100644 (file)
@@ -789,6 +789,7 @@ int Buffer::readHeader(Lexer & lex)
        params().html_latex_end.clear();
        params().html_math_img_scale = 1.0;
        params().output_sync_macro.erase();
+       params().local_layout.clear();
 
        for (int i = 0; i < 4; ++i) {
                params().user_defined_bullet(i) = ITEMIZE_DEFAULTS[i];
@@ -3748,7 +3749,8 @@ Buffer::ExportStatus Buffer::doExport(string const & target, bool put_in_tempdir
                return ExportTexPathHasSpaces;
        } else {
                runparams.nice = false;
-               bool const success = makeLaTeXFile(FileName(filename), string(), runparams);
+               bool const success = makeLaTeXFile(
+                       FileName(filename), filePath(), runparams);
                if (d->cloned_buffer_)
                        d->cloned_buffer_->d->errorLists["Export"] = d->errorLists["Export"];
                if (!success)