mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0020983: EDF 1569 SMESH: Numbering Display Elements with several groups selected does not work
This commit is contained in:
parent
2cea858d03
commit
82fc097deb
@ -2827,8 +2827,9 @@ 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()) {
|
||||||
|
Handle(SALOME_InteractiveObject) anIObject = it.Value();
|
||||||
if(anIObject->hasEntry())
|
if(anIObject->hasEntry())
|
||||||
if(SMESH_Actor *anActor = SMESH::FindActorByEntry(anIObject->getEntry())){
|
if(SMESH_Actor *anActor = SMESH::FindActorByEntry(anIObject->getEntry())){
|
||||||
anActor->SetCellsLabeled( !anActor->GetCellsLabeled() );
|
anActor->SetCellsLabeled( !anActor->GetCellsLabeled() );
|
||||||
|
Loading…
Reference in New Issue
Block a user