From: vsr Date: Fri, 31 Jul 2009 13:12:15 +0000 (+0000) Subject: Issue 20443: SIGSEGV in SMESHGUI_VTKUtils.cxx::RemoveVisuData X-Git-Tag: V5_1_3rc1~127 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ce336312be1af7b515cc3471769168b3faaac1af;p=modules%2Fsmesh.git Issue 20443: SIGSEGV in SMESHGUI_VTKUtils.cxx::RemoveVisuData --- diff --git a/src/SMESHGUI/SMESHGUI_VTKUtils.cxx b/src/SMESHGUI/SMESHGUI_VTKUtils.cxx index 0c564af0e..569dc023b 100644 --- a/src/SMESHGUI/SMESHGUI_VTKUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_VTKUtils.cxx @@ -192,7 +192,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();