]> git.lyx.org Git - features.git/blobdiff - src/support/filetools.C
fix 459; support epsi and fig formats; fix bug in hu.po
[features.git] / src / support / filetools.C
index f3038973c627d9194a43b713d3c89d513ec7c229..0a398e98fef3e20e126c3d70e4b94fc55457f340 100644 (file)
@@ -993,6 +993,7 @@ string const GetExtension(string const & name)
 // EPS %!PS-Adobe-3.0 EPSF...
 // EPSI like EPS and with
 //      %%BeginPreview...
+// FIG #FIG...
 // FITS ...BITPIX...
 // GIF GIF...
 // JPG JFIF
@@ -1054,10 +1055,6 @@ string const getExtFromContents(string const & filename)
                }
 
                getline(ifs, str);
-
-               lyxerr[Debug::GRAPHICS] << "Scanstring: " << str.substr(0,60)
-                                       << endl;
-
                string const stamp = str.substr(0,2);
                if (firstLine && str.size() >= 2) {
                        // at first we check for a zipped file, because this
@@ -1105,6 +1102,9 @@ string const getExtFromContents(string const & filename)
                        } else if (prefixIs(str,"%TGIF")) {
                                format =  "tgif";
 
+                       } else if (prefixIs(str,"#FIG")) {
+                               format =  "fig";
+
                        } else if (prefixIs(str,"GIF")) {
                                format =  "gif";