]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.cpp
This is the first of a series of commits that will make InsetLayout a real class.
[lyx.git] / src / Converter.cpp
index 03814f10b5240f3244318764898c40be5f1ee231..e674fc9d484cef2d4ccafc013bdea806acf3dcca 100644 (file)
@@ -30,7 +30,6 @@
 #include "support/FileZipListDir.h"
 #include "support/gettext.h"
 #include "support/lstrings.h"
-#include "support/lyxlib.h"
 #include "support/os.h"
 #include "support/Package.h"
 #include "support/Path.h"
@@ -66,8 +65,8 @@ string const dvipdfm_options(BufferParams const & bp)
        string result;
 
        if (bp.papersize != PAPER_CUSTOM) {
-               string const paper_size = bp.paperSizeName();
-               if (paper_size != "b5" && paper_size != "foolscap")
+               string const paper_size = bp.paperSizeName(BufferParams::DVIPDFM);
+               if (!paper_size.empty())
                        result = "-p "+ paper_size;
 
                if (bp.orientation == ORIENTATION_LANDSCAPE)