Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc90840
)
Issue 20443: SIGSEGV in SMESHGUI_VTKUtils.cxx::RemoveVisuData
author
vsr
<vsr@opencascade.com>
Fri, 31 Jul 2009 13:12:15 +0000
(13:12 +0000)
committer
vsr
<vsr@opencascade.com>
Fri, 31 Jul 2009 13:12:15 +0000
(13:12 +0000)
src/SMESHGUI/SMESHGUI_VTKUtils.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_VTKUtils.cxx
b/src/SMESHGUI/SMESHGUI_VTKUtils.cxx
index 0c564af0e21b92c7f657661343ebd9b6d12f1f26..569dc023bf68bbd9997b1a26e4158b66f8803046 100644
(file)
--- 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<SMESH_Actor*>(actors->GetItemAsObject(i)))
+
if
(SMESH_Actor *actor = dynamic_cast<SMESH_Actor*>(actors->GetItemAsObject(i)))
{
vtkWnd->RemoveActor(actor);
actor->Delete();