mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
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:
parent
187790135b
commit
45c831306d
@ -2526,6 +2526,14 @@ string const BufferParams::dvips_options() const
|
|||||||
{
|
{
|
||||||
string result;
|
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
|
if (use_geometry
|
||||||
&& papersize == PAPER_CUSTOM
|
&& papersize == PAPER_CUSTOM
|
||||||
&& !lyxrc.print_paper_dimension_flag.empty()
|
&& !lyxrc.print_paper_dimension_flag.empty()
|
||||||
|
Loading…
Reference in New Issue
Block a user