diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index 75fe84e19..a7cc8d0f2 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -4698,12 +4698,9 @@ static void findCommonSubMesh (list& theSubMeshList, // clear collected submeshes set::iterator clrIt = subMeshToClear.begin(); - for ( ; clrIt != subMeshToClear.end(); clrIt++ ) { - SMESH_subMesh* sm = (SMESH_subMesh*)*clrIt; - if ( sm ) - sm->ComputeStateEngine( SMESH_subMesh::CLEAN ); - // ClearSubMesh( *clrIt ); - } + for ( ; clrIt != subMeshToClear.end(); clrIt++ ) + if ( SMESH_subMesh* sm = (SMESH_subMesh*)*clrIt ) + sm->ComputeStateEngine( SMESH_subMesh::CLEAN ); } aPythonDump << " ])";