mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 17:50:34 +05:00
0020340: EDF 1022 SMESH : Crash with FindNodeClosestTo in a second new study
Nullify mesh after TNodeSearcherDeleter::Unset()
This commit is contained in:
parent
fd97cbec7c
commit
52aa1d3b40
@ -80,7 +80,7 @@ namespace {
|
|||||||
SMDSAbs_ElementType myPreviewType; // type to show
|
SMDSAbs_ElementType myPreviewType; // type to show
|
||||||
//!< Constructor
|
//!< Constructor
|
||||||
TPreviewMesh(SMDSAbs_ElementType previewElements = SMDSAbs_All) {
|
TPreviewMesh(SMDSAbs_ElementType previewElements = SMDSAbs_All) {
|
||||||
_isShapeToMesh = _id =_studyId =_idDoc = 0;
|
_isShapeToMesh = (_id =_studyId =_idDoc = 0);
|
||||||
_myMeshDS = new SMESHDS_Mesh( _id, true );
|
_myMeshDS = new SMESHDS_Mesh( _id, true );
|
||||||
myPreviewType = previewElements;
|
myPreviewType = previewElements;
|
||||||
}
|
}
|
||||||
@ -199,6 +199,7 @@ namespace {
|
|||||||
for (sm = subMeshes.begin(); sm != subMeshes.end(); sm++)
|
for (sm = subMeshes.begin(); sm != subMeshes.end(); sm++)
|
||||||
sm->second->DeleteEventListener( this );
|
sm->second->DeleteEventListener( this );
|
||||||
}
|
}
|
||||||
|
myMesh = 0;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user