]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021825: Error in the example of "Projection Algorithms" in the user's guide
authoreap <eap@opencascade.com>
Fri, 31 Aug 2012 12:03:32 +0000 (12:03 +0000)
committereap <eap@opencascade.com>
Fri, 31 Aug 2012 12:03:32 +0000 (12:03 +0000)
 In MakeComputed(), check if gen->Compute() is really OK

src/StdMeshers/StdMeshers_ProjectionUtils.cxx

index 3053be90d22bce6d95db37e677127ed460366d0f..d0f29a54bb66dbc9ddebdcd549e4a62baa39bbd4 100644 (file)
@@ -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;
 }