From: vpa Date: Mon, 31 Oct 2016 13:34:15 +0000 (+0300) Subject: 0027868: Visualization - AIS_InteractiveContext::Remove() might keep removed object... X-Git-Tag: V7_1_0_beta~31 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=a3d4053c158a7fc1300fa1a8d0a4e94bc43ca07d;p=occt-copy.git 0027868: Visualization - AIS_InteractiveContext::Remove() might keep removed object in selection list - AIS_InteractiveContext::unhighlightOwners is corrected to handle all objects in selection regardless of owner's selection state --- diff --git a/src/AIS/AIS_InteractiveContext.cxx b/src/AIS/AIS_InteractiveContext.cxx index 75c2c9cce3..99e6efbb2c 100644 --- a/src/AIS/AIS_InteractiveContext.cxx +++ b/src/AIS/AIS_InteractiveContext.cxx @@ -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()); }