]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
prevent MakeMesh() from crash if myShapeIDMap.IsEmpty()
authoreap <eap@opencascade.com>
Wed, 3 Mar 2010 13:58:32 +0000 (13:58 +0000)
committereap <eap@opencascade.com>
Wed, 3 Mar 2010 13:58:32 +0000 (13:58 +0000)
src/SMESH/SMESH_Pattern.cxx

index 834003e8c8ed3573d75bc785b139aa9e5be108ea..da1c16c497f9065ee543c0518bda989beed7e8c7 100644 (file)
@@ -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: {