From: eap Date: Fri, 13 Jan 2006 09:54:19 +0000 (+0000) Subject: PAL10953. In GetGEOMGen(), assure that Geom_Gen exists X-Git-Tag: T_Before_Join_BR-D5-38-2003~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fc736d3b7fa82287990e7767653f0090f7a63300;p=modules%2Fsmesh.git PAL10953. In GetGEOMGen(), assure that Geom_Gen exists --- diff --git a/src/SMESHGUI/SMESHGUI_GEOMGenUtils.cxx b/src/SMESHGUI/SMESHGUI_GEOMGenUtils.cxx index c9ffc82e6..4ea7e9180 100644 --- a/src/SMESHGUI/SMESHGUI_GEOMGenUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_GEOMGenUtils.cxx @@ -37,8 +37,11 @@ namespace SMESH { { static GEOM::GEOM_Gen_var aGEOMGen; - if(CORBA::is_nil(aGEOMGen)) - aGEOMGen = GeometryGUI::GetGeomGen(); + if(CORBA::is_nil(aGEOMGen)) { + if ( GeometryGUI::GetGeomGen()->_is_nil() ) + GeometryGUI::InitGeomGen(); + aGEOMGen = GeometryGUI::GetGeomGen(); + } return aGEOMGen; }