fix bug 10959. Initialize GEOM_Gen if necessary

This commit is contained in:
eap 2005-12-19 15:30:18 +00:00
parent dcc030258b
commit e07015e9cc

View File

@ -102,6 +102,8 @@ bool SMESH_NumberFilter::isOk (const SUIT_DataOwner* theDataOwner) const
// Get shape from geom object and verify its parameters
GEOM_Client aGeomClient;
if ( CORBA::is_nil( GeometryGUI::GetGeomGen() ) && !GeometryGUI::InitGeomGen() )
return false;
TopoDS_Shape aShape = aGeomClient.GetShape(GeometryGUI::GetGeomGen(), aGeomObj);
if (aShape.IsNull() ||
!myShapeTypes.Contains(aShape.ShapeType()))