0028987: Visualization, SelectMgr_SelectableObject - move out iterator from object
[occt.git] / tools / VInspector / VInspector_ItemSensitiveEntity.cxx
index 4904406..c3ecbac 100644 (file)
@@ -155,11 +155,11 @@ void VInspector_ItemSensitiveEntity::Init()
 
   int aRowId = Row();
   int aCurrentId = 0;
-  for (aSelection->Init(); aSelection->More(); aSelection->Next(), aCurrentId++)
+  for (NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>::Iterator aSelEntIter (aSelection->Entities()); aSelEntIter.More(); aSelEntIter.Next(), aCurrentId++)
   {
     if (aCurrentId != aRowId)
       continue;
-    myEntity = aSelection->Sensitive();
+    myEntity = aSelEntIter.Value();
     break;
   }
   TreeModel_ItemBase::Init();