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;
This commit is contained in:
eap 2012-01-24 12:58:12 +00:00
parent b35e752a84
commit fe75082f74

View File

@ -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;
}