diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 253ba88c2e..3bedc0475a 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -892,6 +892,10 @@ string FileName::guessFormatFromContents() const format = "fits"; } + // Dia knows also compressed form + if ((format == "gzip") && (!compare_ascii_no_case(extension(), "dia"))) + format="dia"; + if (!format.empty()) { LYXERR(Debug::GRAPHICS, "Recognised Fileformat: " << format); return format;