X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fconverter.C;h=1d5b67c19700e6184a836709c0ff96499763cabf;hb=b9963e1a57135c3e2ab128a9ec4300f0e4886992;hp=c8f47c4785d2251c19516a78daf4cc1e12267b70;hpb=a874c837d500dfc1502b01be0971163b83971b49;p=lyx.git diff --git a/src/converter.C b/src/converter.C index c8f47c4785..1d5b67c197 100644 --- a/src/converter.C +++ b/src/converter.C @@ -77,7 +77,7 @@ string const dvipdfm_options(BufferParams const & bp) { string result; - if (bp.papersize2 != VM_PAPER_CUSTOM) { + if (bp.papersize != PAPER_CUSTOM) { string const paper_size = bp.paperSizeName(); if (paper_size != "b5" && paper_size != "foolscap") result = "-p "+ paper_size; @@ -294,7 +294,9 @@ bool Converters::convert(Buffer const * buffer, if (try_default) { // if no special converter defined, then we take the // default one from ImageMagic. - string const from_ext = formats.extension(from_format); + string const from_ext = from_format.empty() ? + GetExtension(from_file) : + formats.extension(from_format); string const command = "sh " + QuoteName(LibFileSearch("scripts", "convertDefault.sh")) +