X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_NodesDlg.cxx;h=9bc490d468d8a7db9ae14b7fe49166f017f0c312;hb=5b963f4114bd3c0e86e8b2df4b4e280ef1c0a289;hp=bee86a35d45a90f9e45c56a498315fa194f7737d;hpb=c3e2a7b12ebefec0110115c2a571d809d6097d3d;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_NodesDlg.cxx b/src/SMESHGUI/SMESHGUI_NodesDlg.cxx index bee86a35d..9bc490d46 100644 --- a/src/SMESHGUI/SMESHGUI_NodesDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_NodesDlg.cxx @@ -1,6 +1,6 @@ -// SMESH SMESHGUI : GUI for SMESH component +// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE // -// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // // This library is free software; you can redistribute it and/or @@ -17,15 +17,14 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// -// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // +// SMESH SMESHGUI : GUI for SMESH component // File : SMESHGUI_NodesDlg.cxx // Author : Nicolas REJNERI // Module : SMESH // $Header$ - +// #include "SMESHGUI_NodesDlg.h" #include "SMESHGUI.h" @@ -54,6 +53,7 @@ #include "SVTK_Selector.h" #include "SVTK_ViewWindow.h" +#include "VTKViewer_Algorithm.h" #include "VTKViewer_CellLocationsArray.h" #include "SALOME_Actor.h" @@ -454,7 +454,8 @@ bool SMESHGUI_NodesDlg::ClickOnApply() mySelectionMgr->selectedObjects(aList); if (aList.Extent() != 1) { if (SVTK_ViewWindow* aViewWindow = SMESH::GetCurrentVtkView()) { - vtkActorCollection *aCollection = aViewWindow->getRenderer()->GetActors(); + VTK::ActorCollectionCopy aCopy(aViewWindow->getRenderer()->GetActors()); + vtkActorCollection *aCollection = aCopy.GetActors(); aCollection->InitTraversal(); while (vtkActor *anAct = aCollection->GetNextActor()) { if (SMESH_Actor *anActor = dynamic_cast(anAct)) {