]> git.lyx.org Git - features.git/commitdiff
Fix bug #5247: physical paper size settings are not honoured by pdflatex export
authorEnrico Forestieri <forenr@lyx.org>
Tue, 18 May 2010 18:10:54 +0000 (18:10 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 18 May 2010 18:10:54 +0000 (18:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34435 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferParams.cpp

index a23bfd2d6d4c5653c3ff3dd1979bc24a0c842e5a..80aa462719134bba4703a0f9ed0e49975ce4c03f 100644 (file)
@@ -1397,7 +1397,7 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
                texrow.newline();
        }
        if (!tclass.provides("geometry")
-               && (use_geometry || nonstandard_papersize)) {
+           && (use_geometry || nonstandard_papersize)) {
                odocstringstream ods;
                if (!getGraphicsDriver("geometry").empty())
                        ods << getGraphicsDriver("geometry");
@@ -1558,7 +1558,8 @@ bool BufferParams::writeLaTeX(odocstream & os, LaTeXFeatures & features,
                        os << "}\n";
                        texrow.newline();
                }
-       } else if (orientation == ORIENTATION_LANDSCAPE) {
+       } else if (orientation == ORIENTATION_LANDSCAPE
+                  || papersize != PAPER_DEFAULT) {
                features.require("papersize");
        }