From: eap Date: Thu, 28 Feb 2013 15:12:29 +0000 (+0000) Subject: fix failure of non-regression test SMESH_TEST/Grids/smesh/imps8/I1 X-Git-Tag: pluginMGCleaner~94 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=54cd5176e84a62927d9a97bc9994de655b6dd5da;p=modules%2Fsmesh.git 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 --- 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);