]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
fix failure of non-regression test SMESH_TEST/Grids/smesh/imps6/G0
authoreap <eap@opencascade.com>
Wed, 27 Feb 2013 14:39:34 +0000 (14:39 +0000)
committereap <eap@opencascade.com>
Wed, 27 Feb 2013 14:39:34 +0000 (14:39 +0000)
in getSubmeshIDForCopiedMesh(), fix invalid index (subIndex==0) for OCCT map in
case if srcMeshDS->GetPersistentId() == 0

src/StdMeshers/StdMeshers_Import_1D.cxx

index a856471205ed4d88875a67a60247e1ea1284c104..760a14a8ca40c3aee99531e032f4110e0dc07c63 100644 (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