]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020340: EDF 1022 SMESH : Crash with FindNodeClosestTo in a second new study
authoreap <eap@opencascade.com>
Wed, 6 May 2009 13:23:57 +0000 (13:23 +0000)
committereap <eap@opencascade.com>
Wed, 6 May 2009 13:23:57 +0000 (13:23 +0000)
  Nullify mesh after TNodeSearcherDeleter::Unset()

src/SMESH_I/SMESH_MeshEditor_i.cxx

index 728bf2be1f8307c55db267d58feea9a929614d7e..a68bd8fb2881eafbcf69120b4b98de859856c0cf 100644 (file)
@@ -80,7 +80,7 @@ namespace {
     SMDSAbs_ElementType myPreviewType; // type to show
     //!< Constructor
     TPreviewMesh(SMDSAbs_ElementType previewElements = SMDSAbs_All) {
-      _isShapeToMesh = _id =_studyId =_idDoc = 0;
+      _isShapeToMesh = (_id =_studyId =_idDoc = 0);
       _myMeshDS  = new SMESHDS_Mesh( _id, true );
       myPreviewType = previewElements;
     }
@@ -199,6 +199,7 @@ namespace {
         for (sm = subMeshes.begin(); sm != subMeshes.end(); sm++)
           sm->second->DeleteEventListener( this );
       }
+      myMesh = 0;
     }
   };