Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e6982c2
)
Fix bug SMESH5451: SMESH_mechanic script aborts.
author
jrt
<jrt>
Tue, 16 Mar 2004 12:51:43 +0000
(12:51 +0000)
committer
jrt
<jrt>
Tue, 16 Mar 2004 12:51:43 +0000
(12:51 +0000)
src/SMESHGUI/SMESHGUI_Swig.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_Swig.cxx
b/src/SMESHGUI/SMESHGUI_Swig.cxx
index 2eace0798fe7e606fb17d09624b7130345aeee14..db4ce870e00e82054b593741453cc59cfb63a19c 100644
(file)
--- 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);
}
myStudyBuilder->DefineComponentInstance(father, CompMesh );
if (aLocked) myStudy->GetProperties()->SetLocked(true);
}
+
+ mySComponentMesh=father;
+
// Tags definition
Tag_HypothesisRoot = 1;
Tag_AlgorithmsRoot = 2;
// 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;
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");
if (!mySComponentMesh->FindSubObject (Tag_HypothesisRoot, HypothesisRoot)) {
HypothesisRoot = myStudyBuilder->NewObjectToTag (mySComponentMesh, Tag_HypothesisRoot);
anAttr = myStudyBuilder->FindOrCreateAttribute(HypothesisRoot, "AttributeName");