mirror of https://github.com/CGAL/cgal
Fix read_STL() in binary_mode for ASCVII on Windows
This commit is contained in:
parent
c76819d0a7
commit
8d9b58d2dd
|
|
@ -139,7 +139,7 @@ bool read_STL(std::istream& is,
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the first word is not 'solid', the file must be binary
|
// If the first word is not 'solid', the file must be binary
|
||||||
if(s != "solid" || (word[5] !='\n' && word[5] != ' '))
|
if(s != "solid" || (word[5] !='\n' && word[5] !='\r' && word[5] != ' '))
|
||||||
{
|
{
|
||||||
if(!binary)
|
if(!binary)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue