From: Anthony Geay Date: Tue, 23 Feb 2021 13:32:46 +0000 (+0100) Subject: Fix bug when switching between GEOM and SMESH modules X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3e130fb70b872844eed6533e3bf3f90a9f726915;p=modules%2Fgeom.git Fix bug when switching between GEOM and SMESH modules --- diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index 0ecafd3da..d6889abcd 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -88,6 +88,7 @@ #include #include +#include "SALOME_KernelServices.hxx" #include @@ -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 ); }