]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
WIP
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 13 Jan 2021 14:51:47 +0000 (15:51 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 13 Jan 2021 14:51:47 +0000 (15:51 +0100)
src/SALOMEDS/SALOMEDS_Study_i.cxx

index 25ed605f0b750b60ea920d2958b5c43284de78cc..2cc44844811bbe15f2faae3c74a20e3e297220b4 100644 (file)
@@ -64,7 +64,7 @@ UNEXPECT_CATCH(LockProtection, SALOMEDS::StudyBuilder::LockProtection)
 
 static SALOMEDS_Driver_i* GetDriver(const SALOMEDSImpl_SObject& theObject, CORBA::ORB_ptr orb);
 
-static  PortableServer::POA_ptr _poa;
+static PortableServer::POA_ptr _poa;
 
 /**
  * Return a unique study obj but servant is embeded here.
@@ -76,6 +76,9 @@ SALOMEDS::Study_ptr KERNEL::getStudyServantSA()
   if(CORBA::is_nil(aStudy))
   {
     CORBA::ORB_ptr orb = KERNEL::getORB();
+    CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
+    PortableServer::POA_var poa = PortableServer::POA::_narrow(obj);
+    _poa = PortableServer::POA::_duplicate(poa);
     SALOMEDS_Study_i *servant = new SALOMEDS_Study_i(orb,SALOME::Session::_nil());
     aStudy = servant->_this();
   }