]> git.lyx.org Git - lyx.git/blobdiff - src/converter.C
fix nullstream also in pch files
[lyx.git] / src / converter.C
index 4dec5fa2b31897250a0e570d5f5761bd2f51aba0..1d5b67c19700e6184a836709c0ff96499763cabf 100644 (file)
@@ -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")) +