From 54cd5176e84a62927d9a97bc9994de655b6dd5da Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 28 Feb 2013 15:12:29 +0000 Subject: [PATCH] fix failure of non-regression test SMESH_TEST/Grids/smesh/imps8/I1 Fix cleanDependsOn() which mush do at least CHECK_COMPUTE_STATE even in empty mesh --- src/SMESH/SMESH_subMesh.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index d015be18d..83ef5f87c 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -1181,11 +1181,14 @@ SMESH_Hypothesis::Hypothesis_Status void SMESH_subMesh::cleanDependsOn( bool keepSupportedsubMeshes ) { - if ( _father->NbNodes() == 0 ) return; - SMESH_subMeshIteratorPtr smIt = getDependsOnIterator(false, /*complexShapeFirst=*/true); - if ( !keepSupportedsubMeshes ) + if ( _father->NbNodes() == 0 ) + { + while ( smIt->more() ) + smIt->next()->ComputeStateEngine(CHECK_COMPUTE_STATE); + } + else if ( !keepSupportedsubMeshes ) { while ( smIt->more() ) smIt->next()->ComputeStateEngine(CLEAN); -- 2.39.2