From: eap Date: Wed, 27 Feb 2013 14:39:34 +0000 (+0000) Subject: fix failure of non-regression test SMESH_TEST/Grids/smesh/imps6/G0 X-Git-Tag: pluginMGCleaner~101 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7d9f9fd31f5110f213a2f58a98515234564d6dd4;p=modules%2Fsmesh.git 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 --- diff --git a/src/StdMeshers/StdMeshers_Import_1D.cxx b/src/StdMeshers/StdMeshers_Import_1D.cxx index a85647120..760a14a8c 100644 --- a/src/StdMeshers/StdMeshers_Import_1D.cxx +++ b/src/StdMeshers/StdMeshers_Import_1D.cxx @@ -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