]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for bug IPAL12063.
authormzn <mzn@opencascade.com>
Wed, 12 Apr 2006 11:35:58 +0000 (11:35 +0000)
committermzn <mzn@opencascade.com>
Wed, 12 Apr 2006 11:35:58 +0000 (11:35 +0000)
src/SMESHGUI/SMESHGUI.cxx

index 3085c7a3fc18d0afc661d1eec90aad1b7637eb36..a04d3e7eae0c94532a0c037ca589bae54db8ca91 100644 (file)
@@ -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 );