From 45c831306d3759062a96cab1c24d3b7831aba35e Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 8 Jan 2012 17:00:33 +0000 Subject: [PATCH] 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 --- src/BufferParams.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index e2959ed092..00b830588e 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -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() -- 2.39.2