Only output the -paper option if the dvi viewer is xdvi, thereby fixing

bug #233429.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2575 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2001-08-23 15:11:23 +00:00
parent f921515196
commit c82e7795c3
2 changed files with 7 additions and 0 deletions

View 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

View 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")