From: eap Date: Mon, 19 Dec 2005 15:30:18 +0000 (+0000) Subject: fix bug 10959. Initialize GEOM_Gen if necessary X-Git-Tag: T_Before_Join_BR_3_1_0deb~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e07015e9cc33a528a8ab0ad4733ee86aef2d5d3e;p=modules%2Fsmesh.git fix bug 10959. Initialize GEOM_Gen if necessary --- 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()))