1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0025436: Visualization - AIS_InteractiveContext::HilightPreviousDetected() should switch from first value in the list to the last

This commit is contained in:
isk
2014-11-12 14:27:50 +03:00
committed by bugmaster
parent 8cf06aa236
commit 4ca4bbe8bd
4 changed files with 84 additions and 1 deletions

View File

@@ -1455,9 +1455,10 @@ Standard_Integer AIS_LocalContext::HilightPreviousDetected (const Handle(V3d_Vie
return 0;
}
const Standard_Integer aLen = myDetectedSeq.Length();
if (--myCurDetected < 1)
{
myCurDetected = 1;
myCurDetected = aLen;
}
Handle(SelectMgr_EntityOwner) anOwner = myMainVS->Picked (myDetectedSeq (myCurDetected));
if (anOwner.IsNull())