]> git.lyx.org Git - lyx.git/blobdiff - src/exporter.C
Add margin to paragraph dialog.
[lyx.git] / src / exporter.C
index d3ff74a95ef7e4e2df0315353e267d19c2e17312..164a6da9d0fbf323537d6d37644e51430f0b31fe 100644 (file)
@@ -116,7 +116,7 @@ CopyStatus copyFile(string const & format,
        // overwrite themselves. This check could be changed to
        // boost::filesystem::equivalent(sourceFile, destFile) if export to
        // other directories than the document directory is desired.
-       if (!prefixIs(onlyPath(sourceFile.absFilename()), package().temp_dir()))
+       if (!prefixIs(onlyPath(sourceFile.absFilename()), package().temp_dir().absFilename()))
                return ret;
 
        if (!force) {
@@ -149,7 +149,7 @@ bool Exporter::Export(Buffer * buffer, string const & format,
                      bool put_in_tempdir, string & result_file)
 {
        string backend_format;
-       OutputParams runparams;
+       OutputParams runparams(&buffer->params().encoding());
        runparams.flavor = OutputParams::LATEX;
        runparams.linelen = lyxrc.plaintext_linelen;
        vector<string> backends = Backends(*buffer);