From: rnv Date: Tue, 29 Apr 2014 12:12:10 +0000 (+0400) Subject: Update notebook.myStudy to avoid problem with the bad reference to the X-Git-Tag: V7_4_0rc1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=25190caa5f14bed01cabdbde17c861363aeaaf8d;p=modules%2Fgeom.git Update notebook.myStudy to avoid problem with the bad reference to the SalomeDS study during update study from the notebook. --- diff --git a/src/GEOM_SWIG/geomBuilder.py b/src/GEOM_SWIG/geomBuilder.py index 74d835d0a..79bfbb4a0 100644 --- a/src/GEOM_SWIG/geomBuilder.py +++ b/src/GEOM_SWIG/geomBuilder.py @@ -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")