From: eap Date: Fri, 31 Aug 2012 12:03:32 +0000 (+0000) Subject: 0021825: Error in the example of "Projection Algorithms" in the user's guide X-Git-Tag: V6_6_0a1~159 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=02c33dab509eb6c8e56e39f4ca720131936e89bf;p=modules%2Fsmesh.git 0021825: Error in the example of "Projection Algorithms" in the user's guide In MakeComputed(), check if gen->Compute() is really OK --- diff --git a/src/StdMeshers/StdMeshers_ProjectionUtils.cxx b/src/StdMeshers/StdMeshers_ProjectionUtils.cxx index 3053be90d..d0f29a54b 100644 --- a/src/StdMeshers/StdMeshers_ProjectionUtils.cxx +++ b/src/StdMeshers/StdMeshers_ProjectionUtils.cxx @@ -2004,8 +2004,9 @@ bool StdMeshers_ProjectionUtils::MakeComputed(SMESH_subMesh * sm, const int iter if ( !srcMesh ) srcMesh = mesh; - if ( MakeComputed( srcMesh->GetSubMesh( srcShape ), iterationNb + 1 )) - return gen->Compute( *mesh, sm->GetSubShape() ); + if ( MakeComputed( srcMesh->GetSubMesh( srcShape ), iterationNb + 1 ) && + gen->Compute( *mesh, sm->GetSubShape() )) + return sm->IsMeshComputed(); return false; }