mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 02:00:35 +05:00
Fix bug when switching between GEOM and SMESH modules
This commit is contained in:
parent
790f3736b4
commit
3e130fb70b
@ -88,6 +88,7 @@
|
|||||||
|
|
||||||
#include <SALOMEDSClient_ClientFactory.hxx>
|
#include <SALOMEDSClient_ClientFactory.hxx>
|
||||||
#include <SALOMEDSClient_IParameters.hxx>
|
#include <SALOMEDSClient_IParameters.hxx>
|
||||||
|
#include "SALOME_KernelServices.hxx"
|
||||||
|
|
||||||
#include <SALOMEDS_SObject.hxx>
|
#include <SALOMEDS_SObject.hxx>
|
||||||
|
|
||||||
@ -230,6 +231,8 @@ GeometryGUI::GeometryGUI() : SalomeApp_Module( "GEOM" )
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
comp = RetrieveGEOMInstance();
|
comp = RetrieveGEOMInstance();
|
||||||
|
CORBA::Object_var comp2 = CORBA::Object::_narrow(comp);
|
||||||
|
KERNEL::RegisterCompo("GEOM",comp2);
|
||||||
}
|
}
|
||||||
myComponentGeom = GEOM::GEOM_Gen::_narrow( comp );
|
myComponentGeom = GEOM::GEOM_Gen::_narrow( comp );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user