X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_Gen_i.cxx;h=8ff2c08ff45c5cb5d0faae23099ae3208cb5f38b;hb=790c5cfa903e3b809e6bd5b7aefed48d17f15dc5;hp=0840d7b109ab658c5b7c405bc4a0688b7e15c2fa;hpb=5142df035d3a1f35c6af00cde28969088a547205;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 0840d7b10..8ff2c08ff 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -1726,7 +1726,7 @@ SMESH::long_array* SMESH_Gen_i::Evaluate(SMESH::SMESH_Mesh_ptr theMesh, SMESH_subMesh* sm = anIt->first; SMESH_ComputeErrorPtr& error = sm->GetComputeError(); const SMESH_Algo* algo = myGen.GetAlgo( myLocMesh, sm->GetSubShape()); - if ( algo && !error.get() || error->IsOK() ) + if ( (algo && !error.get()) || error->IsOK() ) error.reset( new SMESH_ComputeError( COMPERR_ALGO_FAILED,"Failed to evaluate",algo)); } else