From 7d9f9fd31f5110f213a2f58a98515234564d6dd4 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 27 Feb 2013 14:39:34 +0000 Subject: [PATCH] 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 --- src/StdMeshers/StdMeshers_Import_1D.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2