From: isk Date: Fri, 25 Sep 2015 11:16:24 +0000 (+0300) Subject: Fix samples crash. X-Git-Tag: V6_9_1~2 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=1384cb64c9b48acc4f600beef83a7b62071328ba;p=occt-copy.git Fix samples crash. --- 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;