]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Corrected for bug PAL13637.
authorskl <skl@opencascade.com>
Tue, 24 Oct 2006 05:22:35 +0000 (05:22 +0000)
committerskl <skl@opencascade.com>
Tue, 24 Oct 2006 05:22:35 +0000 (05:22 +0000)
Changes in ::OnGUIEvent() in switch for case 9010.

src/SMESHGUI/SMESHGUI.cxx

index 196d6928bcbcb909d1de78f807197d8d950d74ce..1163703b52355fe3e5571f418f3353db85bad826 100644 (file)
@@ -2172,12 +2172,14 @@ 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();
-       if(anIObject->hasEntry())
+      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->SetPointsLabeled( !anActor->GetPointsLabeled() );
          }
+       }
       }
       break;
     }