Fix a couple of minor issues and a possible crash when closing a document with several MDI views
This commit is contained in:
@@ -786,7 +786,7 @@ bool MeshInput::LoadAsciiSTL (std::istream &rstrIn)
|
||||
if (line.find("ENDFACET") != std::string::npos)
|
||||
ulFacetCt++;
|
||||
// prevent from reading EOF (as I don't know how to reread the file then)
|
||||
else if (rstrIn.tellg() > ulSize)
|
||||
if (rstrIn.tellg() > ulSize)
|
||||
break;
|
||||
else if (line.find("ENDSOLID") != std::string::npos)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user