]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
fix getSubmeshIDForCopiedMesh()
authoreap <eap@opencascade.com>
Wed, 18 Sep 2013 12:57:26 +0000 (12:57 +0000)
committereap <eap@opencascade.com>
Wed, 18 Sep 2013 12:57:26 +0000 (12:57 +0000)
src/StdMeshers/StdMeshers_Import_1D.cxx

index 6443d98d2a23591d79a0122618d80ffe358a98ec..a75c2f5cc472c9e62287e0df4252e94c5b2d1c29 100644 (file)
@@ -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() );
     }