From: eap Date: Wed, 18 Apr 2012 10:29:50 +0000 (+0000) Subject: Regression on SMESH_TEST/Grids/smesh/bugs/G9 X-Git-Tag: TRIPOLI_323~37 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=116907dd1ebe980d2b27efc8d7e3e00d5f47fb25;p=modules%2Fsmesh.git Regression on SMESH_TEST/Grids/smesh/bugs/G9 In SetCurrentStudy(), initialize notebook with a given study --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 89476239e..63e747174 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -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