fix failure of non-regression test SMESH_TEST/Grids/smesh/imps6/G0

in getSubmeshIDForCopiedMesh(), fix invalid index (subIndex==0) for OCCT map in
case if srcMeshDS->GetPersistentId() == 0
This commit is contained in:
eap 2013-02-27 14:39:34 +00:00
parent e453ca2b46
commit 7d9f9fd31f

View File

@ -521,7 +521,7 @@ namespace // INTERNAL STUFF
TopExp::MapShapes( SMESH_Mesh::PseudoShape(), pseudoSubShapes );
// index of pseudoSubShapes corresponding to srcMeshDS
int subIndex = srcMeshDS->GetPersistentId() % pseudoSubShapes.Extent();
int subIndex = 1 + srcMeshDS->GetPersistentId() % pseudoSubShapes.Extent();
int nbSubShapes = 1 + srcMeshDS->GetPersistentId() / pseudoSubShapes.Extent();
// try to find already present shapeForSrcMesh