From 444b73893bc1f4f93f3c42e857f4dea154cfcd8a Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 19 Mar 2020 17:41:39 +0300 Subject: [PATCH] Adapting for OCCT dev (7.5) --- src/HEXABLOCKGUI/HEXABLOCKGUI_SalomeTools.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/HEXABLOCKGUI/HEXABLOCKGUI_SalomeTools.cxx b/src/HEXABLOCKGUI/HEXABLOCKGUI_SalomeTools.cxx index 9c98baa..ee32ec8 100644 --- a/src/HEXABLOCKGUI/HEXABLOCKGUI_SalomeTools.cxx +++ b/src/HEXABLOCKGUI/HEXABLOCKGUI_SalomeTools.cxx @@ -169,9 +169,10 @@ namespace GUI continue; Handle(SelectMgr_Selection) sel = theObj->Selection( m ); - - for ( sel->Init(); sel->More(); sel->Next() ) { - const Handle(SelectMgr_SensitiveEntity) aHSenEntity = sel->Sensitive(); + const NCollection_Vector& selected = sel->Entities(); + for ( NCollection_Vector::Iterator selIter( selected ); + selIter.More(); selIter.Next() ) { + const Handle(SelectMgr_SensitiveEntity) aHSenEntity = selIter.Value(); if ( aHSenEntity.IsNull() ) continue; Handle(SelectBasics_SensitiveEntity) entity = aHSenEntity->BaseSensitive(); -- 2.39.2