mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
Fix a bug (crash when adding an hexahedron from ids).
This commit is contained in:
parent
404443cc0a
commit
642ed0a836
@ -590,8 +590,8 @@ SMDS_MeshVolume * SMDS_Mesh::AddVolumeWithID(int idnode1, int idnode2,
|
||||
node6 = (SMDS_MeshNode *)myNodeIDFactory->MeshElement(idnode6);
|
||||
node7 = (SMDS_MeshNode *)myNodeIDFactory->MeshElement(idnode7);
|
||||
node8 = (SMDS_MeshNode *)myNodeIDFactory->MeshElement(idnode8);
|
||||
if((node1==NULL)||(node2==NULL)||(node3==NULL)||(node4=NULL)||
|
||||
(node5==NULL)||(node6=NULL)||(node7==NULL)||(node8=NULL))
|
||||
if((node1==NULL)||(node2==NULL)||(node3==NULL)||(node4==NULL)||
|
||||
(node5==NULL)||(node6==NULL)||(node7==NULL)||(node8==NULL))
|
||||
return NULL;
|
||||
return AddVolumeWithID(node1, node2, node3, node4, node5, node6, node7,
|
||||
node8, ID);
|
||||
|
Loading…
Reference in New Issue
Block a user