From e07015e9cc33a528a8ab0ad4733ee86aef2d5d3e Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 19 Dec 2005 15:30:18 +0000 Subject: [PATCH] fix bug 10959. Initialize GEOM_Gen if necessary --- src/SMESHFiltersSelection/SMESH_NumberFilter.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SMESHFiltersSelection/SMESH_NumberFilter.cxx b/src/SMESHFiltersSelection/SMESH_NumberFilter.cxx index 692251556..176cd3fb6 100644 --- a/src/SMESHFiltersSelection/SMESH_NumberFilter.cxx +++ b/src/SMESHFiltersSelection/SMESH_NumberFilter.cxx @@ -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())) -- 2.39.2