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