mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-24 16:30:34 +05:00
Issue 20443: SIGSEGV in SMESHGUI_VTKUtils.cxx::RemoveVisuData
This commit is contained in:
parent
fc90840855
commit
ce336312be
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user