patch for hypofilter (to avoid the exception)

Signed-off-by: asl <asl@opencascade.com>
This commit is contained in:
isn 2016-11-23 19:32:36 +03:00 committed by asl
parent ecff7cff5b
commit 6c8252b448

View File

@ -139,16 +139,18 @@ void SMESH_HypoFilter::IsMoreLocalThanPredicate::findPreferable()
std::find( idList.begin(), idList.end(), shapeID );
if ( idIt != idList.end() && *idIt != idList.front() )
{
for ( ; idIt != idList.end(); --idIt )
for ( --idIt; true; --idIt )
{
const TopoDS_Shape& shape = _mesh.GetMeshDS()->IndexToShape( *idIt );
if ( !shape.IsNull())
_preferableShapes.Add( shape );
}
}
}
}
if ( idIt == idList.begin() )
break;
}
}
}
}
//=======================================================================
//function : IsMoreLocalThanPredicate::IsOk
//purpose :