PAL10953. In GetGEOMGen(), assure that Geom_Gen exists

This commit is contained in:
eap 2006-01-13 09:54:19 +00:00
parent ce2513eb44
commit fc736d3b7f

View File

@ -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;
}