X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_Swig.cxx;h=db4ce870e00e82054b593741453cc59cfb63a19c;hb=d09f5392183954305568ffc78fac88e4aacd9f0e;hp=2eace0798fe7e606fb17d09624b7130345aeee14;hpb=253bd8edea0f44d01e65f1fb085d04428544bd14;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_Swig.cxx b/src/SMESHGUI/SMESHGUI_Swig.cxx index 2eace0798..db4ce870e 100644 --- a/src/SMESHGUI/SMESHGUI_Swig.cxx +++ b/src/SMESHGUI/SMESHGUI_Swig.cxx @@ -104,6 +104,9 @@ void SMESH_Swig::Init(int studyID) myStudyBuilder->DefineComponentInstance(father, CompMesh ); if (aLocked) myStudy->GetProperties()->SetLocked(true); } + + mySComponentMesh=father; + // Tags definition Tag_HypothesisRoot = 1; Tag_AlgorithmsRoot = 2; @@ -136,6 +139,7 @@ const char* SMESH_Swig::AddNewMesh(const char* IOR) SALOMEDS::AttributePixMap_var aPixmap; SALOMEDS::SObject_var HypothesisRoot; + ASSERT(!mySComponentMesh->_is_nil()); if (!mySComponentMesh->FindSubObject (Tag_HypothesisRoot, HypothesisRoot)) { HypothesisRoot = myStudyBuilder->NewObjectToTag (mySComponentMesh, Tag_HypothesisRoot); anAttr = myStudyBuilder->FindOrCreateAttribute(HypothesisRoot, "AttributeName");