Salome HOME
0021480: EDF 2084 SMESH: SIGSEGV when validating Netgen3D hypothesis
authoreap <eap@opencascade.com>
Tue, 24 Jan 2012 12:58:12 +0000 (12:58 +0000)
committereap <eap@opencascade.com>
Tue, 24 Jan 2012 12:58:12 +0000 (12:58 +0000)
in CreateMesh(), fix storing a new mesh in aStudyContext:

-  aStudyContext->mapMesh[_localId] = aMesh;
+  aStudyContext->mapMesh[_localId-1] = aMesh;

src/SMESH/SMESH_Gen.cxx

index 421dc85a4c7540bdd3cee419b80eaf08b85da50c..ac79496d223603aeab14a56c93331c2f0749c635 100644 (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;
 }