]> git.lyx.org Git - features.git/commitdiff
Recognize also dia's compressed format
authorPavel Sanda <sanda@lyx.org>
Sat, 17 Jan 2009 16:31:59 +0000 (16:31 +0000)
committerPavel Sanda <sanda@lyx.org>
Sat, 17 Jan 2009 16:31:59 +0000 (16:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28216 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/FileName.cpp

index 253ba88c2ed5cbe85a98702650ad072e001f2b8f..3bedc0475afb257626a457ece4c6420f5eb46227 100644 (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;