]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Regression on SMESH_TEST/Grids/smesh/bugs/G9
authoreap <eap@opencascade.com>
Wed, 18 Apr 2012 10:29:50 +0000 (10:29 +0000)
committereap <eap@opencascade.com>
Wed, 18 Apr 2012 10:29:50 +0000 (10:29 +0000)
In SetCurrentStudy(), initialize notebook with a given study

src/SMESH_SWIG/smeshDC.py

index 89476239ed846eb01c7e0acf055256a7a7f048b8..63e74717482c6ea7cc2f57daef2c32d6f9bd88d0 100644 (file)
@@ -443,6 +443,11 @@ class smeshDC(SMESH._objref_SMESH_Gen):
         self.geompyD=geompyD
         self.SetGeomEngine(geompyD)
         SMESH._objref_SMESH_Gen.SetCurrentStudy(self,theStudy)
+        global notebook
+        if theStudy:
+            notebook = salome_notebook.NoteBook( theStudy )
+        else:
+            notebook = salome_notebook.NoteBook( salome_notebook.PseudoStudyForNoteBook() )
 
     ## Gets the current study
     #  @ingroup l1_auxiliary