]> OCCT Git - occt-copy.git/commitdiff
Fix samples crash.
authorisk <isk@opencascade.com>
Fri, 25 Sep 2015 11:16:24 +0000 (14:16 +0300)
committerisk <isk@opencascade.com>
Fri, 25 Sep 2015 11:16:24 +0000 (14:16 +0300)
src/AIS/AIS_InteractiveContext.cxx

index fd68376bc39b3a2fe99fc04d819b66fc8dee3c58..7ddd4350b5505a8663006ce327c093ec243315a7 100644 (file)
@@ -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;