Another fix like previous one.

This commit is contained in:
adam 2009-08-03 14:39:22 +00:00
parent a4d61a7b6f
commit 05a54f24ee

View File

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