From 859674eaf03bdb87daea26782c48e47c0ec2bd97 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 3 Mar 2010 13:58:32 +0000 Subject: [PATCH] prevent MakeMesh() from crash if myShapeIDMap.IsEmpty() --- src/SMESH/SMESH_Pattern.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: { -- 2.39.2