mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 17:50: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
|
// Get shape from geom object and verify its parameters
|
||||||
GEOM_Client aGeomClient;
|
GEOM_Client aGeomClient;
|
||||||
|
if ( CORBA::is_nil( GeometryGUI::GetGeomGen() ) && !GeometryGUI::InitGeomGen() )
|
||||||
|
return false;
|
||||||
TopoDS_Shape aShape = aGeomClient.GetShape(GeometryGUI::GetGeomGen(), aGeomObj);
|
TopoDS_Shape aShape = aGeomClient.GetShape(GeometryGUI::GetGeomGen(), aGeomObj);
|
||||||
if (aShape.IsNull() ||
|
if (aShape.IsNull() ||
|
||||||
!myShapeTypes.Contains(aShape.ShapeType()))
|
!myShapeTypes.Contains(aShape.ShapeType()))
|
||||||
|
Loading…
Reference in New Issue
Block a user