Salome HOME
Remove this from StudyContextStruct at destructor
authoreap <eap@opencascade.com>
Mon, 24 Sep 2012 11:19:01 +0000 (11:19 +0000)
committereap <eap@opencascade.com>
Mon, 24 Sep 2012 11:19:01 +0000 (11:19 +0000)
src/SMESH/SMESH_Hypothesis.cxx

index 711f463c8d99a96e8b482512f2cc28503bde1241..48f293a565c8ddba91f58dc7b02e3013922438da 100644 (file)
@@ -63,6 +63,8 @@ SMESH_Hypothesis::SMESH_Hypothesis(int hypId,
 SMESH_Hypothesis::~SMESH_Hypothesis()
 {
   MESSAGE("SMESH_Hypothesis::~SMESH_Hypothesis");
+  StudyContextStruct* myStudyContext = _gen->GetStudyContext(_studyId);
+  myStudyContext->mapHypothesis[_hypId] = 0;
 }
 
 //=============================================================================