mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-14 04:31:34 +05:00
In ExtrusionAlongPath(), prevent SIGSEGV on an empty path submesh
This commit is contained in:
parent
c2805b7c74
commit
59cc20197f
@ -1250,7 +1250,7 @@ SMESH::SMESH_MeshEditor::Extrusion_Error
|
||||
TopoDS_Shape aShape = SMESH_Gen_i::GetSMESHGen()->GeomObjectToShape( thePathShape );
|
||||
SMESH_subMesh* aSubMesh = aMeshImp->GetImpl().GetSubMesh( aShape );
|
||||
|
||||
if ( !aSubMesh )
|
||||
if ( !aSubMesh || !aSubMesh->GetSubMeshDS())
|
||||
return SMESH::SMESH_MeshEditor::EXTR_BAD_PATH_SHAPE;
|
||||
|
||||
SMDS_MeshNode* nodeStart = (SMDS_MeshNode*)aMeshImp->GetImpl().GetMeshDS()->FindNode(theNodeStart);
|
||||
|
Loading…
x
Reference in New Issue
Block a user