Update notebook.myStudy to avoid problem with the bad reference to the

SalomeDS study during update study from the notebook.
This commit is contained in:
rnv 2014-04-29 16:12:10 +04:00
parent 15ea376466
commit 25190caa5f

View File

@ -729,6 +729,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
self.myStudyId = self.myStudy._get_StudyId()
self.myBuilder = self.myStudy.NewBuilder()
self.father = self.myStudy.FindComponent("GEOM")
notebook.myStudy = theStudy
if self.father is None:
self.father = self.myBuilder.NewComponent("GEOM")
A1 = self.myBuilder.FindOrCreateAttribute(self.father, "AttributeName")