From fe75082f746703db332d6a7487f5172b2bd297dd Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 24 Jan 2012 12:58:12 +0000 Subject: [PATCH] 0021480: EDF 2084 SMESH: SIGSEGV when validating Netgen3D hypothesis in CreateMesh(), fix storing a new mesh in aStudyContext: - aStudyContext->mapMesh[_localId] = aMesh; + aStudyContext->mapMesh[_localId-1] = aMesh; --- src/SMESH/SMESH_Gen.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SMESH/SMESH_Gen.cxx b/src/SMESH/SMESH_Gen.cxx index 421dc85a4..ac79496d2 100644 --- a/src/SMESH/SMESH_Gen.cxx +++ b/src/SMESH/SMESH_Gen.cxx @@ -102,7 +102,7 @@ SMESH_Mesh* SMESH_Gen::CreateMesh(int theStudyId, bool theIsEmbeddedMode) this, theIsEmbeddedMode, aStudyContext->myDocument); - aStudyContext->mapMesh[_localId] = aMesh; + aStudyContext->mapMesh[_localId-1] = aMesh; return aMesh; } -- 2.39.2