From: jrt Date: Mon, 15 Mar 2004 17:17:10 +0000 (+0000) Subject: Do not create the SMESH engine at module initialisation. It must be created at the... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d6b256c47f3d33ea2534c16949744255bf501a1;p=modules%2Fsmesh.git Do not create the SMESH engine at module initialisation. It must be created at the first GUI command, else the loading study fail. It should fix the bug KERNEL5238. --- diff --git a/src/SMESHGUI/SMESHGUI_StudyAPI.cxx b/src/SMESHGUI/SMESHGUI_StudyAPI.cxx index 42e2724d9..a205272d5 100644 --- a/src/SMESHGUI/SMESHGUI_StudyAPI.cxx +++ b/src/SMESHGUI/SMESHGUI_StudyAPI.cxx @@ -99,7 +99,7 @@ SMESHGUI_StudyAPI::SMESHGUI_StudyAPI ( SALOMEDS::Study_ptr aStudy, // NRI SALOMEDS::SComponent_var father = aStudy->FindComponent("MESH"); - SALOMEDS::GenericAttribute_var anAttr; + /*SALOMEDS::GenericAttribute_var anAttr; SALOMEDS::AttributeName_var aName; SALOMEDS::AttributePixMap_var aPixmap; @@ -115,7 +115,7 @@ SMESHGUI_StudyAPI::SMESHGUI_StudyAPI ( SALOMEDS::Study_ptr aStudy, aPixmap->SetPixMap( "ICON_OBJBROWSER_SMESH" ); myStudyBuilder->DefineComponentInstance(father, CompMesh ); - mySComponentMesh = SALOMEDS::SComponent::_narrow( father ); + mySComponentMesh = SALOMEDS::SComponent::_narrow( father );*/ } //=======================================================================