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

This commit is contained in:
jfa 2008-11-12 10:45:55 +00:00
parent 972eeadc36
commit 73c19aa96d

View File

@ -1360,7 +1360,7 @@ bool SMESH_subMesh::ComputeStateEngine(int event)
{ {
ret = algo->Compute((*_father), shape); 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(); _computeError = algo->GetComputeError();
} }
catch ( std::bad_alloc& exc ) { catch ( std::bad_alloc& exc ) {