From: eap Date: Wed, 18 Sep 2013 12:57:26 +0000 (+0000) Subject: fix getSubmeshIDForCopiedMesh() X-Git-Tag: V7_3_0a1~149 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0e557488d2bec8f6dd1d2746219c9bb37e68bd4a;p=modules%2Fsmesh.git fix getSubmeshIDForCopiedMesh() --- diff --git a/src/StdMeshers/StdMeshers_Import_1D.cxx b/src/StdMeshers/StdMeshers_Import_1D.cxx index 6443d98d2..a75c2f5cc 100644 --- a/src/StdMeshers/StdMeshers_Import_1D.cxx +++ b/src/StdMeshers/StdMeshers_Import_1D.cxx @@ -569,7 +569,8 @@ namespace // INTERNAL STUFF aBuilder.MakeCompound( comp ); shapeForSrcMesh = comp; for ( int iSub = 0; iSub < nbSubShapes; ++iSub ) - aBuilder.Add( comp, pseudoSubShapes( subIndex+iSub )); + if ( subIndex+iSub <= pseudoSubShapes.Extent() ) + aBuilder.Add( comp, pseudoSubShapes( subIndex+iSub )); TopExp_Explorer vExp( tgtMeshDS->ShapeToMesh(), TopAbs_VERTEX ); aBuilder.Add( comp, vExp.Current() ); }