From: san Date: Wed, 2 Feb 2005 05:11:20 +0000 (+0000) Subject: PAL7807 X-Git-Tag: V2_2_0b4~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe4f5ef4abc979a05b356800b95cc66053634b24;p=modules%2Fsmesh.git PAL7807 --- diff --git a/src/SMESHGUI/SMESHGUI_Filter.cxx b/src/SMESHGUI/SMESHGUI_Filter.cxx index 08da7c923..52f36378b 100755 --- a/src/SMESHGUI/SMESHGUI_Filter.cxx +++ b/src/SMESHGUI/SMESHGUI_Filter.cxx @@ -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( myActor ); + if ( !anActor || anActor->GetObject() == 0 ) return false; SMDS_Mesh* aMesh = anActor->GetObject()->GetMesh();