From 02c33dab509eb6c8e56e39f4ca720131936e89bf Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 31 Aug 2012 12:03:32 +0000 Subject: [PATCH] 0021825: Error in the example of "Projection Algorithms" in the user's guide In MakeComputed(), check if gen->Compute() is really OK --- src/StdMeshers/StdMeshers_ProjectionUtils.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.39.2