From ce336312be1af7b515cc3471769168b3faaac1af Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 31 Jul 2009 13:12:15 +0000 Subject: [PATCH] Issue 20443: SIGSEGV in SMESHGUI_VTKUtils.cxx::RemoveVisuData --- 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 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(); -- 2.39.2