0027868: Visualization - AIS_InteractiveContext::Remove() might keep removed object...
[occt.git] / 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());
     }