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:
@@ -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
|
||||
|
Reference in New Issue
Block a user