Fix a couple of minor issues and a possible crash when closing a document with several MDI views

This commit is contained in:
wmayer
2012-03-11 18:37:28 +01:00
parent abd97c83f1
commit 171112a2fd
8 changed files with 41 additions and 14 deletions

View File

@@ -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;