mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
[tuleap26948] : fix of Dump study does not work after study reopening
This commit is contained in:
parent
d3582bad2b
commit
8df37edc3d
@ -50,6 +50,8 @@ SALOMEDS::Study_var GEOM_Gen_Session_i::getStudyServant()
|
|||||||
return aStudy;
|
return aStudy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#include "GEOM_Gen_No_Session_i.hh"
|
||||||
|
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
GEOM_I_EXPORT PortableServer::ObjectId* GEOMEngine_factory(CORBA::ORB_ptr orb,
|
GEOM_I_EXPORT PortableServer::ObjectId* GEOMEngine_factory(CORBA::ORB_ptr orb,
|
||||||
@ -58,7 +60,17 @@ extern "C"
|
|||||||
const char* instanceName,
|
const char* instanceName,
|
||||||
const char* interfaceName)
|
const char* interfaceName)
|
||||||
{
|
{
|
||||||
GEOM_Gen_Session_i* myGEOM_Gen_i = new GEOM_Gen_Session_i(orb, poa, contId, instanceName, interfaceName);
|
CORBA::Object_var o = poa->id_to_reference(*contId);
|
||||||
return myGEOM_Gen_i->getId();
|
Engines::Container_var cont = Engines::Container::_narrow(o);
|
||||||
|
if(cont->is_SSL_mode())
|
||||||
|
{
|
||||||
|
GEOM_Gen_No_Session_i* myGEOM_Gen_i = new GEOM_Gen_No_Session_i(orb, poa, contId, instanceName, interfaceName);
|
||||||
|
return myGEOM_Gen_i->getId();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
GEOM_Gen_Session_i* myGEOM_Gen_i = new GEOM_Gen_Session_i(orb, poa, contId, instanceName, interfaceName);
|
||||||
|
return myGEOM_Gen_i->getId();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user