]> git.lyx.org Git - lyx.git/blobdiff - src/exporter.C
I reactivate the code to resize the InsetText on a resize event of the main
[lyx.git] / src / exporter.C
index 68922a87fd3356fe773bca1f7d13c0d636ce884b..bb3b05a2dc37c5c01957fbe3dcafbecb40740237 100644 (file)
@@ -64,19 +64,19 @@ bool Exporter::Export(Buffer * buffer, string const & format,
                buffer->writeFileAscii(filename, lyxrc.ascii_linelen);
        // Linuxdoc backend
        else if (buffer->isLinuxDoc())
-               buffer->makeLinuxDocFile(filename, true);
+               buffer->makeLinuxDocFile(filename, !put_in_tempdir);
        // Docbook backend
        else if (buffer->isDocBook())
-               buffer->makeDocBookFile(filename, true);
+               buffer->makeDocBookFile(filename, !put_in_tempdir);
        // LaTeX backend
        else if (backend_format == format)
                buffer->makeLaTeXFile(filename, string(), true);
-       else if (contains(buffer->filepath, ' ')) {
+       else if (contains(buffer->filePath(), ' ')) {
                Alert::alert(_("Cannot run latex."),
                           _("The path to the lyx file cannot contain spaces."));
                return false;
        } else
-               buffer->makeLaTeXFile(filename, buffer->filepath, false);
+               buffer->makeLaTeXFile(filename, buffer->filePath(), false);
 
        string outfile_base = (put_in_tempdir)
                ? filename : buffer->getLatexName(false);