1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0026213: Visualization - replace sequence in Select3D_SensitiveGroup

NCollection_IndexedMap is now used instead of NCollection_Sequence within Select3D_SensitiveGroup.
This commit is contained in:
kgv
2017-07-10 13:40:54 +03:00
committed by bugmaster
parent 99cfc27757
commit 7f5945d688
6 changed files with 93 additions and 60 deletions

View File

@@ -415,12 +415,16 @@ public:
//! Remove the given key.
//! Caution! The index of the last key can be changed.
void RemoveKey(const TheKeyType& theKey1)
Standard_Boolean RemoveKey (const TheKeyType& theKey1)
{
Standard_Integer anIndToRemove = FindIndex(theKey1);
if (anIndToRemove > 0) {
RemoveFromIndex(anIndToRemove);
if (anIndToRemove < 1)
{
return Standard_False;
}
RemoveFromIndex (anIndToRemove);
return Standard_True;
}
//! FindKey