]> SALOME platform Git repositories - modules/multipr.git/commitdiff
Salome HOME
Integration of development done in the MERGE_MULTIPR_EVOLUTION CVS branch V4_1_0 V4_1_0rc2 V4_1_0rc3 mergefrom_MERGE_MULTIPR_EVOLUTION_07-Dec-07
authorapo <apo@opencascade.com>
Fri, 7 Dec 2007 08:02:56 +0000 (08:02 +0000)
committerapo <apo@opencascade.com>
Fri, 7 Dec 2007 08:02:56 +0000 (08:02 +0000)
src/MULTIPRGUI/MULTIPR_GUI.cxx

index 8475e1d68f2e330ab4709b0594c23661607cb469..466a8daacb8b0d0bf67227d9e385c2aee81bae5f 100644 (file)
@@ -374,6 +374,20 @@ bool MULTIPR_GUI::activateModule(SUIT_Study* theStudy)
       aStudyDS = _CAST(Study,aStudy)->GetStudy();
     aGen->SetCurrentStudy(aStudyDS);
 
+    // Init mMULTIPRObj
+    _PTR(SComponent) aSComp = aStudy->FindComponent(name());
+    if (aSComp) {
+      _PTR(ChildIterator) it (aStudy->NewChildIterator(aSComp));
+      if (it->More()) {
+        _PTR(SObject) aSObj = it->Value();
+        string anIOR = aSObj->GetIOR();
+        if (!anIOR.empty()) {
+          CORBA::Object_var anObj = getApp()->orb()->string_to_object(anIOR.c_str());
+          mMULTIPRObj = MULTIPR_ORB::MULTIPR_Obj::_narrow(anObj);
+        }
+      }
+    }
+
     return bOk;
 }