From: vsr Date: Thu, 19 Mar 2020 14:41:39 +0000 (+0300) Subject: Adapting for OCCT dev (7.5) X-Git-Tag: V9_5_0a2^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=444b73893bc1f4f93f3c42e857f4dea154cfcd8a;p=modules%2Fhexablock.git Adapting for OCCT dev (7.5) --- 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();