From 25190caa5f14bed01cabdbde17c861363aeaaf8d Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 29 Apr 2014 16:12:10 +0400 Subject: [PATCH] Update notebook.myStudy to avoid problem with the bad reference to the SalomeDS study during update study from the notebook. --- src/GEOM_SWIG/geomBuilder.py | 1 + 1 file changed, 1 insertion(+) 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") -- 2.39.2