From 3e130fb70b872844eed6533e3bf3f90a9f726915 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 23 Feb 2021 14:32:46 +0100 Subject: [PATCH] Fix bug when switching between GEOM and SMESH modules --- src/GEOMGUI/GeometryGUI.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 ); } -- 2.39.2