From fc736d3b7fa82287990e7767653f0090f7a63300 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 13 Jan 2006 09:54:19 +0000 Subject: [PATCH] PAL10953. In GetGEOMGen(), assure that Geom_Gen exists --- src/SMESHGUI/SMESHGUI_GEOMGenUtils.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; } -- 2.39.2