mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-01 20:30:35 +05:00
PAL10953: prevent sigsegv in GetHypothesisList()
This commit is contained in:
parent
9ab8a760fc
commit
917b87170a
@ -380,7 +380,7 @@ SMESH_Hypothesis::Hypothesis_Status
|
||||
int hypId = myHyp->GetId();
|
||||
status = _impl->AddHypothesis(myLocSubShape, hypId);
|
||||
if ( !SMESH_Hypothesis::IsStatusFatal(status) ) {
|
||||
_mapHypo[hypId] = myHyp;
|
||||
_mapHypo[hypId] = SMESH::SMESH_Hypothesis::_duplicate( myHyp );
|
||||
// assure there is a corresponding submesh
|
||||
if ( !_impl->IsMainShape( myLocSubShape )) {
|
||||
int shapeId = _impl->GetMeshDS()->ShapeToIndex( myLocSubShape );
|
||||
|
Loading…
Reference in New Issue
Block a user