From 1384cb64c9b48acc4f600beef83a7b62071328ba Mon Sep 17 00:00:00 2001 From: isk Date: Fri, 25 Sep 2015 14:16:24 +0300 Subject: [PATCH] Fix samples crash. --- src/AIS/AIS_InteractiveContext.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/AIS/AIS_InteractiveContext.cxx b/src/AIS/AIS_InteractiveContext.cxx index fd68376bc3..7ddd4350b5 100644 --- a/src/AIS/AIS_InteractiveContext.cxx +++ b/src/AIS/AIS_InteractiveContext.cxx @@ -705,8 +705,7 @@ void AIS_InteractiveContext::EraseSelected (const Standard_Boolean theToUpdateVi aSelIter->Init(); while (aSelIter->More()) { - Handle(SelectMgr_EntityOwner) anOwner = Handle(SelectMgr_EntityOwner)::DownCast (aSelIter->Value()); - Handle(AIS_InteractiveObject) anObj = Handle(AIS_InteractiveObject)::DownCast (anOwner->Selectable()); + Handle(AIS_InteractiveObject) anObj = Handle(AIS_InteractiveObject)::DownCast (aSelIter->Value()); Erase (anObj, Standard_False); isFound = Standard_True;