From: akl Date: Mon, 10 Jan 2011 11:43:47 +0000 (+0000) Subject: Fix of IPAL22187: mesh is updated now after removing of orphan nodes. X-Git-Tag: StartingPortingMED3~170 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=07808b26b0499630733a343d1f9472074478014c;p=modules%2Fsmesh.git Fix of IPAL22187: mesh is updated now after removing of orphan nodes. --- diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index 2ae3f57df..1e732f922 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -473,10 +473,12 @@ 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 ); + myMesh->GetMeshDS()->Modified(); if ( IdList.size() ) myMesh->SetIsModified( true ); - return anEditor.Remove( IdList, true ); + return ret; } //=============================================================================