mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +05:00
fix AddFrom() for an undefined filter as argument
This commit is contained in:
parent
85f64d17e5
commit
bf7367a22f
@ -411,7 +411,7 @@ CORBA::Long SMESH_Group_i::AddFrom( SMESH::SMESH_IDSource_ptr theSource )
|
||||
long prevNb = Size();
|
||||
SMESHDS_Group* aGroupDS = dynamic_cast<SMESHDS_Group*>( GetGroupDS() );
|
||||
if (aGroupDS) {
|
||||
SMDS_ElemIteratorPtr elemIt = SMESH_Mesh_i::GetElements( theSource, GetType() );
|
||||
if ( SMDS_ElemIteratorPtr elemIt = SMESH_Mesh_i::GetElements( theSource, GetType() ))
|
||||
while ( elemIt->more() )
|
||||
aGroupDS->SMDSGroup().Add( elemIt->next() );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user