mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 17:50:34 +05:00
PAL7807
This commit is contained in:
parent
2177157cb7
commit
fe4f5ef4ab
@ -83,8 +83,8 @@ bool SMESHGUI_PredicateFilter::IsValid( const int theCellId ) const
|
|||||||
if ( myActor == 0 || myPred->_is_nil() )
|
if ( myActor == 0 || myPred->_is_nil() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
SMESH_Actor* anActor = ( SMESH_Actor* )myActor;
|
SMESH_Actor* anActor = dynamic_cast<SMESH_Actor*>( myActor );
|
||||||
if ( anActor->GetObject() == 0 )
|
if ( !anActor || anActor->GetObject() == 0 )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
SMDS_Mesh* aMesh = anActor->GetObject()->GetMesh();
|
SMDS_Mesh* aMesh = anActor->GetObject()->GetMesh();
|
||||||
|
Loading…
Reference in New Issue
Block a user