]> SALOME platform Git repositories - modules/hexablock.git/commitdiff
Salome HOME
Adapting for OCCT dev (7.5) V9_5_0a2
authorvsr <vsr@opencascade.com>
Thu, 19 Mar 2020 14:41:39 +0000 (17:41 +0300)
committervsr <vsr@opencascade.com>
Thu, 19 Mar 2020 14:41:39 +0000 (17:41 +0300)
src/HEXABLOCKGUI/HEXABLOCKGUI_SalomeTools.cxx

index 9c98baacd281e680b5c1140d942d49b9f0b558d1..ee32ec8ee46c8baf437a31e2a3ac379eb9f05003 100644 (file)
@@ -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<Handle(SelectMgr_SensitiveEntity)>& selected = sel->Entities();
+                        for ( NCollection_Vector<Handle(SelectMgr_SensitiveEntity)>::Iterator selIter( selected );
+                              selIter.More(); selIter.Next() ) {
+                                const Handle(SelectMgr_SensitiveEntity) aHSenEntity = selIter.Value();
                                 if ( aHSenEntity.IsNull() )
                                         continue;
                                 Handle(SelectBasics_SensitiveEntity) entity = aHSenEntity->BaseSensitive();