From: mzn Date: Wed, 12 Apr 2006 11:35:58 +0000 (+0000) Subject: Fix for bug IPAL12063. X-Git-Tag: T3_2_0b1_pre1~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e4837c298db770da3f96572907c778b661bd80e9;p=modules%2Fsmesh.git Fix for bug IPAL12063. --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 3085c7a3f..a04d3e7ea 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -797,7 +797,7 @@ namespace{ SMESH::SMESH_subMesh_var aSubMesh = SMESH::SMESH_subMesh::_nil(); _PTR(ChildIterator) it = aStudy->NewChildIterator(obj); - if ( it->More() ){ + for ( ; it->More(); it->Next() ){ _PTR(SObject) CSO = it->Value(); aSubMesh = SMESH::SMESH_subMesh::_narrow( SMESH::SObjectToObject( CSO ) ); if ( !aSubMesh->_is_nil() ) @@ -806,6 +806,7 @@ namespace{ _PTR(SObject) aMeshSO = SMESH::FindSObject(aMesh); if (aMeshSO) SMESH::ModifiedMesh(aMeshSO, false); + break; } } aStudyBuilder->RemoveObjectWithChildren( obj );