]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMESH/SMESH_Hypothesis.cxx
Salome HOME
Remove this from StudyContextStruct at destructor
[modules/smesh.git] / 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;
 }
 
 //=============================================================================