mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-24 16:30:34 +05:00
fix bug 10959. Initialize GEOM_Gen if necessary
This commit is contained in:
parent
dcc030258b
commit
e07015e9cc
@ -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()))
|
||||
|
Loading…
Reference in New Issue
Block a user