From 0e557488d2bec8f6dd1d2746219c9bb37e68bd4a Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 18 Sep 2013 12:57:26 +0000 Subject: [PATCH] fix getSubmeshIDForCopiedMesh() --- src/StdMeshers/StdMeshers_Import_1D.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() ); } -- 2.39.2