]> git.lyx.org Git - lyx.git/blobdiff - src/converter.C
Fix bug 2029 (RtL space width)
[lyx.git] / src / converter.C
index 79feb70ffeb02e61af370d81acdfb40f55b49592..4dec5fa2b31897250a0e570d5f5761bd2f51aba0 100644 (file)
@@ -77,7 +77,7 @@ string const dvipdfm_options(BufferParams const & bp)
 {
        string result;
 
-       if (bp.papersize2 != VM_PAPER_CUSTOM) {
+       if (bp.papersize != PAPER_CUSTOM) {
                string const paper_size = bp.paperSizeName();
                if (paper_size != "b5" && paper_size != "foolscap")
                        result = "-p "+ paper_size;
@@ -412,6 +412,9 @@ bool Converters::convert(Buffer const * buffer,
                                                << "renaming file " << outfile
                                                << " to " << real_outfile
                                                << endl;
+                               // Finally, don't forget to tell any future
+                               // converters to use the renamed file...
+                               outfile = real_outfile;
                        }
 
                        if (!conv.parselog.empty()) {