mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
Another fix like previous one.
This commit is contained in:
parent
a4d61a7b6f
commit
05a54f24ee
@ -149,7 +149,7 @@ namespace SMESH
|
|||||||
vtkActorCollection *actors = aCopy.GetActors();
|
vtkActorCollection *actors = aCopy.GetActors();
|
||||||
for (int i = 0; i < actors->GetNumberOfItems(); ++i ) {
|
for (int i = 0; i < actors->GetNumberOfItems(); ++i ) {
|
||||||
// size of actors changes inside the loop
|
// 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);
|
vtkWnd->RemoveActor(actor);
|
||||||
actor->Delete();
|
actor->Delete();
|
||||||
|
Loading…
Reference in New Issue
Block a user