From: Angus Leeming Date: Fri, 1 Mar 2002 10:29:26 +0000 (+0000) Subject: Comment out X-Git-Tag: 1.6.10~19774 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fd4424d54971b6f91f3c55347e9d5651c4c9a3e8;p=features.git Comment out // else if ((str.at(3) == 'i') && (str.at(0) == '\000') && // (str.at(1) == '\000') && (str.at(2) == '\000')) // return "xwd"; as a temporary fix for a crash. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3622 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/support/filetools.C b/src/support/filetools.C index 4792c70d0c..fce7d54b02 100644 --- a/src/support/filetools.C +++ b/src/support/filetools.C @@ -1026,33 +1026,31 @@ string const getExtFromContents(string const & filename) { return "compress"; // the graphics part else if (stamp == "BM") - return "bmp"; + return "bmp"; else if (str.at(0) == 'P') { // PBM family - switch (str.at(1)) { + switch (str.at(1)) { case '1': case '4': return "pbm"; - break; + case '2': case '5': return "pgm"; - break; + case '3': case '6': return "ppm"; - break; - default: ; // do nothing } } if (stamp == "\001\332") - return "sgi"; + return "sgi"; else if ((stamp == "II") || (stamp == "MM")) - return "tiff"; + return "tiff"; else if (str.substr(0,3) == "GIF") - return "gif"; - else if ((str.at(3) == 'i') && (str.at(0) == '\000') && - (str.at(1) == '\000') && (str.at(2) == '\000')) - return "xwd"; + return "gif"; +// else if ((str.at(3) == 'i') && (str.at(0) == '\000') && +// (str.at(1) == '\000') && (str.at(2) == '\000')) +// return "xwd"; firstLine = false; } if (contains(str,"EPSF")) // dummy, if we have wrong file