Issue 20443: SIGSEGV in SMESHGUI_VTKUtils.cxx::RemoveVisuData

This commit is contained in:
vsr 2009-07-31 13:12:15 +00:00
parent fc90840855
commit ce336312be

View File

@ -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<SMESH_Actor*>(actors->GetItemAsObject(i)))
if(SMESH_Actor *actor = dynamic_cast<SMESH_Actor*>(actors->GetItemAsObject(i)))
{
vtkWnd->RemoveActor(actor);
actor->Delete();