From: jfa Date: Wed, 12 Nov 2008 10:45:55 +0000 (+0000) Subject: Bug 0020034: [CEA 282] crash in SALOME_Session_Server after SMESH computation. X-Git-Tag: V5_1_0rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=73c19aa96d77c5bbdd653c3f1ace96e8fdb89197;p=modules%2Fsmesh.git Bug 0020034: [CEA 282] crash in SALOME_Session_Server after SMESH computation. --- diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index 8945f5e26..290ee4d76 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -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 ) {