Salome HOME
0020983: EDF 1569 SMESH: Numbering Display Elements with several groups selected...
authordmv <dmv@opencascade.com>
Wed, 15 Sep 2010 14:59:58 +0000 (14:59 +0000)
committerdmv <dmv@opencascade.com>
Wed, 15 Sep 2010 14:59:58 +0000 (14:59 +0000)
src/SMESHGUI/SMESHGUI.cxx

index 3926ebb6a9d6015d00702c4f74413c923fbddcb4..4867a2ca1fa7aef924b942d7a099aa645afe5a82 100644 (file)
@@ -2827,8 +2827,9 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
       LightApp_SelectionMgr* mgr = selectionMgr();
       SALOME_ListIO selected; mgr->selectedObjects( selected );
 
-      if (selected.Extent() == 1)       {
-        Handle(SALOME_InteractiveObject) anIObject = selected.First();
+      SALOME_ListIteratorOfListIO it(selected);
+      for( ; it.More(); it.Next()) {
+        Handle(SALOME_InteractiveObject) anIObject = it.Value();
         if(anIObject->hasEntry())
           if(SMESH_Actor *anActor = SMESH::FindActorByEntry(anIObject->getEntry())){
             anActor->SetCellsLabeled( !anActor->GetCellsLabeled() );