Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
dcc0302
)
fix bug 10959. Initialize GEOM_Gen if necessary
author
eap
<eap@opencascade.com>
Mon, 19 Dec 2005 15:30:18 +0000
(15:30 +0000)
committer
eap
<eap@opencascade.com>
Mon, 19 Dec 2005 15:30:18 +0000
(15:30 +0000)
src/SMESHFiltersSelection/SMESH_NumberFilter.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHFiltersSelection/SMESH_NumberFilter.cxx
b/src/SMESHFiltersSelection/SMESH_NumberFilter.cxx
index 692251556445c8498576573c090465265eb499b8..176cd3fb6bc52eb5b186f81c999834bb0ac4cec5 100644
(file)
--- 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;
// 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()))
TopoDS_Shape aShape = aGeomClient.GetShape(GeometryGUI::GetGeomGen(), aGeomObj);
if (aShape.IsNull() ||
!myShapeTypes.Contains(aShape.ShapeType()))