]> git.lyx.org Git - features.git/commitdiff
Only output the -paper option if the dvi viewer is xdvi, thereby fixing
authorAngus Leeming <leeming@lyx.org>
Thu, 23 Aug 2001 15:11:23 +0000 (15:11 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 23 Aug 2001 15:11:23 +0000 (15:11 +0000)
bug #233429.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2575 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/converter.C

index 71422fe97f94730da5bb9007302880323460f1ca..8982e556332261c50cfd0e372b706d6fe263fdbe 100644 (file)
@@ -1,3 +1,8 @@
+2001-08-23  Angus Leeming  <a.leeming@ic.ac.uk>
+
+       * converter.C (Formats::view): only output the -paper option
+       if the dvi viewer is xdvi, thereby fixing bug #233429.
+
 2001-08-23  Herbert Voss  <voss@perce>
 
        * BufferView_pimpl.C: small fix for LFUN_INSERT_BIBTEX
index 004e5edf3f2f888509e4078a8a1e3cdffdccb4df..c04daf580e6378a5438b9912b8f6aa1b5aecf39c 100644 (file)
@@ -177,7 +177,9 @@ bool Formats::view(Buffer const * buffer, string const & filename,
        string command = format->viewer();
 
        if (format_name == "dvi" &&
+           prefixIs(frontStrip(command), "xdvi") &&
            !lyxrc.view_dvi_paper_option.empty()) {
+               
                command += " " + lyxrc.view_dvi_paper_option;
                string paper_size = converters.papersize(buffer);
                if (paper_size == "letter")