0027868: Visualization - AIS_InteractiveContext::Remove() might keep removed object...
authorvpa <vpa@opencascade.com>
Mon, 31 Oct 2016 13:34:15 +0000 (16:34 +0300)
committerapn <apn@opencascade.com>
Mon, 7 Nov 2016 13:32:39 +0000 (16:32 +0300)
- AIS_InteractiveContext::unhighlightOwners is corrected to handle all objects in selection regardless of owner's selection state

src/AIS/AIS_InteractiveContext.cxx

index 75c2c9c..99e6efb 100644 (file)
@@ -2320,8 +2320,7 @@ void AIS_InteractiveContext::unhighlightOwners (const Handle(AIS_InteractiveObje
   SelectMgr_SequenceOfOwner aSeq;
   for (AIS_NListOfEntityOwner::Iterator aSelIter (mySelection->Objects()); aSelIter.More(); aSelIter.Next())
   {
-    if (aSelIter.Value()->IsSameSelectable (theObject)
-     && aSelIter.Value()->IsSelected())
+    if (aSelIter.Value()->IsSameSelectable (theObject))
     {
       aSeq.Append (aSelIter.Value());
     }