Bug 0020034: [CEA 282] crash in SALOME_Session_Server after SMESH computation.

This commit is contained in:
jfa 2008-11-12 10:47:19 +00:00
parent 9e7d5e2d9f
commit 8fc0480091

View File

@ -1360,7 +1360,7 @@ bool SMESH_subMesh::ComputeStateEngine(int event)
{
ret = algo->Compute((*_father), shape);
}
if ( !ret && _computeError->IsOK() ) // algo can set _computeError of submesh
if ( !_computeError || ( !ret && _computeError->IsOK() ) ) // algo can set _computeError of submesh
_computeError = algo->GetComputeError();
}
catch ( std::bad_alloc& exc ) {