Recognize also dia's compressed format

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28216 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-01-17 16:31:59 +00:00
parent aa2aee5c9b
commit 8883d5438e

View File

@ -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;