Fix bug #7013: Wrong paper size passed to dvips

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40590 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2012-01-08 17:00:33 +00:00
parent 187790135b
commit 45c831306d

View File

@ -2526,6 +2526,14 @@ string const BufferParams::dvips_options() const
{
string result;
// If the class loads the geometry package, we do not know which
// paper size is used, since we do not set it (bug 7013).
// Therefore we must not specify any argument here.
// dvips gets the correct paper size via DVI specials in this case
// (if the class uses the geometry package correctly).
if (documentClass().provides("geometry"))
return result;
if (use_geometry
&& papersize == PAPER_CUSTOM
&& !lyxrc.print_paper_dimension_flag.empty()