From: jrt Date: Mon, 2 Feb 2004 16:43:59 +0000 (+0000) Subject: Fix a bug (crash when adding an hexahedron from ids). X-Git-Tag: V1_5_0~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=642ed0a836ea4a184c4a4a8538b71b5906ee97e1;p=modules%2Fsmesh.git Fix a bug (crash when adding an hexahedron from ids). --- diff --git a/src/SMDS/SMDS_Mesh.cxx b/src/SMDS/SMDS_Mesh.cxx index ca5172d4e..a67db9dd4 100644 --- a/src/SMDS/SMDS_Mesh.cxx +++ b/src/SMDS/SMDS_Mesh.cxx @@ -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);