From 620fb19b42ac29a9d3862d421e6019ca8cfcc0f8 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 31 Jul 2009 13:13:17 +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 00830c8d0..86bfdba72 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