Don't assert OFF type

This commit is contained in:
Maxime Gimeno 2018-12-11 14:55:00 +01:00
parent 548f86b98b
commit b04369cc6b
1 changed files with 8 additions and 2 deletions

View File

@ -2095,8 +2095,14 @@ private: //------------------------------------------------------- private data
std::string off;
is >> sm_skip_comments;
is >> off;
CGAL_assertion( (off == "OFF") || (off == "COFF") || (off == "NOFF") || (off == "CNOFF"));
if(! (
(off == "OFF") || (off == "COFF") || (off == "NOFF") || (off == "CNOFF")
)
)
{
is.setstate(std::ios::failbit);
return false;
}
is >> n >> f >> e;
if(!is){
return false;