From: dmv Date: Mon, 13 Apr 2009 07:08:56 +0000 (+0000) Subject: IPAL21003 Impossible create group from existing group shown only X-Git-Tag: V5_1_2rc1~64 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=72c8afe5818c96f15a157aaa5b98f53db58a4a84;p=modules%2Fsmesh.git IPAL21003 Impossible create group from existing group shown only --- diff --git a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx index 5b3b5e22c..1fbdabfad 100644 --- a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx @@ -2205,12 +2205,10 @@ bool SMESHGUI_GroupDlg::SetAppropriateActor() // iterate on all actors in current view window, search for // any visible actor, that belongs to group or submesh of current mesh vtkActorCollection *aCollection = aViewWindow->getRenderer()->GetActors(); - aCollection->InitTraversal(); - for (vtkActor *anAct = aCollection->GetNextActor(); - anAct && !isActor; - anAct = aCollection->GetNextActor()) + int nbItems = aCollection->GetNumberOfItems(); + for (int i=0; i(anAct); + SMESH_Actor *anActor = dynamic_cast(aCollection->GetItemAsObject(i)); if (anActor && anActor->hasIO()) { Handle(SALOME_InteractiveObject) anIO = anActor->getIO(); if (aViewWindow->isVisible(anIO)) {