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
This commit is contained in:
Angus Leeming 2002-03-01 10:29:26 +00:00
parent b3e376fefc
commit fd4424d549

View File

@ -1026,33 +1026,31 @@ string const getExtFromContents(string const & filename) {
return "compress"; return "compress";
// the graphics part // the graphics part
else if (stamp == "BM") else if (stamp == "BM")
return "bmp"; return "bmp";
else if (str.at(0) == 'P') { // PBM family else if (str.at(0) == 'P') { // PBM family
switch (str.at(1)) { switch (str.at(1)) {
case '1': case '1':
case '4': case '4':
return "pbm"; return "pbm";
break;
case '2': case '2':
case '5': case '5':
return "pgm"; return "pgm";
break;
case '3': case '3':
case '6': case '6':
return "ppm"; return "ppm";
break;
default: ; // do nothing
} }
} }
if (stamp == "\001\332") if (stamp == "\001\332")
return "sgi"; return "sgi";
else if ((stamp == "II") || (stamp == "MM")) else if ((stamp == "II") || (stamp == "MM"))
return "tiff"; return "tiff";
else if (str.substr(0,3) == "GIF") else if (str.substr(0,3) == "GIF")
return "gif"; return "gif";
else if ((str.at(3) == 'i') && (str.at(0) == '\000') && // else if ((str.at(3) == 'i') && (str.at(0) == '\000') &&
(str.at(1) == '\000') && (str.at(2) == '\000')) // (str.at(1) == '\000') && (str.at(2) == '\000'))
return "xwd"; // return "xwd";
firstLine = false; firstLine = false;
} }
if (contains(str,"EPSF")) // dummy, if we have wrong file if (contains(str,"EPSF")) // dummy, if we have wrong file