From: eap Date: Tue, 24 Jan 2012 12:58:12 +0000 (+0000) Subject: 0021480: EDF 2084 SMESH: SIGSEGV when validating Netgen3D hypothesis X-Git-Tag: V6_5_0a1~182 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe75082f746703db332d6a7487f5172b2bd297dd;p=modules%2Fsmesh.git 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; --- 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; }