mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 07:00:33 +05:00
Fix RemoveOrphanNodes() to return valid nb of removed nodes
This commit is contained in:
parent
a7d76b7825
commit
b4e2459e13
@ -531,12 +531,14 @@ CORBA::Long SMESH_MeshEditor_i::RemoveOrphanNodes()
|
||||
for ( int i = 0; i < seq.size(); i++ )
|
||||
IdList.push_back( seq[i] );
|
||||
|
||||
bool ret = anEditor.Remove( IdList, true );
|
||||
int nbNodesBefore = myMesh->NbNodes();
|
||||
anEditor.Remove( IdList, true );
|
||||
myMesh->GetMeshDS()->Modified();
|
||||
if ( IdList.size() )
|
||||
myMesh->SetIsModified( true );
|
||||
int nbNodesAfter = myMesh->NbNodes();
|
||||
|
||||
return ret;
|
||||
return nbNodesBefore - nbNodesAfter;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user