From: adam Date: Mon, 3 Aug 2009 14:39:22 +0000 (+0000) Subject: Another fix like previous one. X-Git-Tag: V5_1_3rc1~125 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=05a54f24ee9d493e026bcf8f2f2287a36f015d76;p=modules%2Fsmesh.git Another fix like previous one. --- 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();