Regression on SMESH_TEST/Grids/smesh/bugs/G9

In SetCurrentStudy(), initialize notebook with a given study
This commit is contained in:
eap 2012-04-18 10:29:50 +00:00
parent a53a044a3f
commit 116907dd1e

View 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