From: eap Date: Wed, 3 Mar 2010 13:58:32 +0000 (+0000) Subject: prevent MakeMesh() from crash if myShapeIDMap.IsEmpty() X-Git-Tag: V5_1_4a1~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=859674eaf03bdb87daea26782c48e47c0ec2bd97;p=modules%2Fsmesh.git prevent MakeMesh() from crash if myShapeIDMap.IsEmpty() --- diff --git a/src/SMESH/SMESH_Pattern.cxx b/src/SMESH/SMESH_Pattern.cxx index 834003e8c..da1c16c49 100644 --- a/src/SMESH/SMESH_Pattern.cxx +++ b/src/SMESH/SMESH_Pattern.cxx @@ -3922,7 +3922,7 @@ bool SMESH_Pattern::MakeMesh(SMESH_Mesh* theMesh, point->myXYZ.Z()); nodesVector [ pIndex ] = node; - if ( true /*subMeshDS*/ ) { + if ( !S.IsNull() /*subMeshDS*/ ) { // !!!!! do not merge new nodes with ones existing on submeshes (see method comment) switch ( S.ShapeType() ) { case TopAbs_VERTEX: {