From e4837c298db770da3f96572907c778b661bd80e9 Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 12 Apr 2006 11:35:58 +0000 Subject: [PATCH] Fix for bug IPAL12063. --- src/SMESHGUI/SMESHGUI.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.39.2