mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
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:
parent
b3e376fefc
commit
fd4424d549
@ -1032,16 +1032,14 @@ string const getExtFromContents(string const & filename) {
|
|||||||
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")
|
||||||
@ -1050,9 +1048,9 @@ string const getExtFromContents(string const & filename) {
|
|||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user