mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0021954: [CEA 706] Error at the mesh object creation
protect fillAncestorsMap() from empty compounds
This commit is contained in:
parent
48fb343b63
commit
ea5674061b
@ -1999,7 +1999,9 @@ void SMESH_Mesh::fillAncestorsMap(const TopoDS_Shape& theShape)
|
|||||||
{
|
{
|
||||||
// a geom group is added. Insert it into lists of ancestors before
|
// a geom group is added. Insert it into lists of ancestors before
|
||||||
// the first ancestor more complex than group members
|
// the first ancestor more complex than group members
|
||||||
int memberType = TopoDS_Iterator( theShape ).Value().ShapeType();
|
TopoDS_Iterator subIt( theShape );
|
||||||
|
if ( !subIt.More() ) return;
|
||||||
|
int memberType = subIt.Value().ShapeType();
|
||||||
for ( desType = TopAbs_VERTEX; desType >= memberType; desType-- )
|
for ( desType = TopAbs_VERTEX; desType >= memberType; desType-- )
|
||||||
for (TopExp_Explorer des( theShape, TopAbs_ShapeEnum( desType )); des.More(); des.Next())
|
for (TopExp_Explorer des( theShape, TopAbs_ShapeEnum( desType )); des.More(); des.Next())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user