From fe4f5ef4abc979a05b356800b95cc66053634b24 Mon Sep 17 00:00:00 2001 From: san Date: Wed, 2 Feb 2005 05:11:20 +0000 Subject: [PATCH] PAL7807 --- src/SMESHGUI/SMESHGUI_Filter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2