]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Another fix like previous one.
authoradam <adam>
Mon, 3 Aug 2009 14:39:22 +0000 (14:39 +0000)
committeradam <adam>
Mon, 3 Aug 2009 14:39:22 +0000 (14:39 +0000)
src/SMESHGUI/SMESHGUI_VTKUtils.cxx

index 569dc023bf68bbd9997b1a26e4158b66f8803046..3d2840b9b277cdcead7a76649e7e4918a822d4fc 100644 (file)
@@ -149,7 +149,7 @@ namespace SMESH
             vtkActorCollection *actors = aCopy.GetActors();
             for (int i = 0; i < actors->GetNumberOfItems(); ++i ) {
               // size of actors changes inside the loop
-              while (SMESH_Actor *actor = dynamic_cast<SMESH_Actor*>(actors->GetItemAsObject(i)))
+              if (SMESH_Actor *actor = dynamic_cast<SMESH_Actor*>(actors->GetItemAsObject(i)))
               {
                 vtkWnd->RemoveActor(actor);
                 actor->Delete();