Fix bug when switching between GEOM and SMESH modules

This commit is contained in:
Anthony Geay 2021-02-23 14:32:46 +01:00
parent 790f3736b4
commit 3e130fb70b

View File

@ -88,6 +88,7 @@
#include <SALOMEDSClient_ClientFactory.hxx>
#include <SALOMEDSClient_IParameters.hxx>
#include "SALOME_KernelServices.hxx"
#include <SALOMEDS_SObject.hxx>
@ -230,6 +231,8 @@ GeometryGUI::GeometryGUI() : SalomeApp_Module( "GEOM" )
else
{
comp = RetrieveGEOMInstance();
CORBA::Object_var comp2 = CORBA::Object::_narrow(comp);
KERNEL::RegisterCompo("GEOM",comp2);
}
myComponentGeom = GEOM::GEOM_Gen::_narrow( comp );
}