From 116907dd1ebe980d2b27efc8d7e3e00d5f47fb25 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 18 Apr 2012 10:29:50 +0000 Subject: [PATCH] Regression on SMESH_TEST/Grids/smesh/bugs/G9 In SetCurrentStudy(), initialize notebook with a given study --- src/SMESH_SWIG/smeshDC.py | 5 +++++ 1 file changed, 5 insertions(+) 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