Corrected for bug PAL13637.

Changes in ::OnGUIEvent() in switch for case 9010.
This commit is contained in:
skl 2006-10-24 05:22:35 +00:00
parent 0809d8c97f
commit 2d1ed8ae65

View File

@ -2172,13 +2172,15 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
LightApp_SelectionMgr* mgr = selectionMgr(); LightApp_SelectionMgr* mgr = selectionMgr();
SALOME_ListIO selected; mgr->selectedObjects( selected ); SALOME_ListIO selected; mgr->selectedObjects( selected );
if (selected.Extent() == 1) { SALOME_ListIteratorOfListIO it(selected);
Handle(SALOME_InteractiveObject) anIObject = selected.First(); for(; it.More(); it.Next()) {
if(anIObject->hasEntry()) Handle(SALOME_InteractiveObject) anIObject = it.Value();
if(anIObject->hasEntry()) {
if(SMESH_Actor *anActor = SMESH::FindActorByEntry(anIObject->getEntry())){ if(SMESH_Actor *anActor = SMESH::FindActorByEntry(anIObject->getEntry())){
anActor->SetPointsLabeled( !anActor->GetPointsLabeled() ); anActor->SetPointsLabeled( !anActor->GetPointsLabeled() );
} }
} }
}
break; break;
} }
case 9011: case 9011: