From 05a54f24ee9d493e026bcf8f2f2287a36f015d76 Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 3 Aug 2009 14:39:22 +0000 Subject: [PATCH] Another fix like previous one. --- src/SMESHGUI/SMESHGUI_VTKUtils.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SMESHGUI/SMESHGUI_VTKUtils.cxx b/src/SMESHGUI/SMESHGUI_VTKUtils.cxx index 569dc023b..3d2840b9b 100644 --- a/src/SMESHGUI/SMESHGUI_VTKUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_VTKUtils.cxx @@ -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(actors->GetItemAsObject(i))) + if (SMESH_Actor *actor = dynamic_cast(actors->GetItemAsObject(i))) { vtkWnd->RemoveActor(actor); actor->Delete();