mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 02:00:33 +05:00
PAL10953. In GetGEOMGen(), assure that Geom_Gen exists
This commit is contained in:
parent
ce2513eb44
commit
fc736d3b7f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user