mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +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() )
|
||||
return false;
|
||||
|
||||
SMESH_Actor* anActor = ( SMESH_Actor* )myActor;
|
||||
if ( anActor->GetObject() == 0 )
|
||||
SMESH_Actor* anActor = dynamic_cast<SMESH_Actor*>( myActor );
|
||||
if ( !anActor || anActor->GetObject() == 0 )
|
||||
return false;
|
||||
|
||||
SMDS_Mesh* aMesh = anActor->GetObject()->GetMesh();
|
||||
|
Loading…
Reference in New Issue
Block a user