From: skl Date: Tue, 24 Oct 2006 05:22:35 +0000 (+0000) Subject: Corrected for bug PAL13637. X-Git-Tag: V3_2_3pre1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d1ed8ae650850fbbd2d6452daa2f2a05d5f6848;p=modules%2Fsmesh.git Corrected for bug PAL13637. Changes in ::OnGUIEvent() in switch for case 9010. --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 196d6928b..1163703b5 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -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; }