]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix bug when switching between GEOM and SMESH modules
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 23 Feb 2021 13:32:46 +0000 (14:32 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 23 Feb 2021 13:32:46 +0000 (14:32 +0100)
src/GEOMGUI/GeometryGUI.cxx

index 0ecafd3dad83fe455d02a02277b7d46a08a3fc09..d6889abcdb65986fe8a66cef414d632476da372b 100644 (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 );
   }