mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
0023636: EDF 18217 - Problem wen suppressing CAD
- Avoid crash on activating SMESH module after source geometry removal
This commit is contained in:
parent
1dadb7d2e2
commit
13d0dc562d
@ -237,7 +237,8 @@ GEOM::GEOM_Object_ptr SMESH_Gen_i::ShapeToGeomObject (const TopoDS_Shape& theSha
|
||||
if ( aClient && aClient->Find( theShape, IOR ))
|
||||
{
|
||||
CORBA::Object_var obj = GetORB()->string_to_object( IOR.ToCString() );
|
||||
aShapeObj = GEOM::GEOM_Object::_narrow ( obj );
|
||||
if ( !obj->_non_existent() )
|
||||
aShapeObj = GEOM::GEOM_Object::_narrow ( obj );
|
||||
}
|
||||
}
|
||||
return aShapeObj._retn();
|
||||
@ -251,7 +252,7 @@ GEOM::GEOM_Object_ptr SMESH_Gen_i::ShapeToGeomObject (const TopoDS_Shape& theSha
|
||||
TopoDS_Shape SMESH_Gen_i::GeomObjectToShape(GEOM::GEOM_Object_ptr theGeomObject)
|
||||
{
|
||||
TopoDS_Shape S;
|
||||
if ( !theGeomObject->_is_nil() ) {
|
||||
if ( !theGeomObject->_is_nil() && !theGeomObject->_non_existent() ) {
|
||||
GEOM_Client* aClient = GetShapeReader();
|
||||
GEOM::GEOM_Gen_ptr aGeomEngine = GetGeomEngine();
|
||||
if ( aClient && !aGeomEngine->_is_nil () )
|
||||
|
Loading…
Reference in New Issue
Block a user