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:
7571b90
)
Issue 20443: SIGSEGV in SMESHGUI_VTKUtils.cxx::RemoveVisuData
author
vsr
<vsr@opencascade.com>
Fri, 31 Jul 2009 13:13:17 +0000
(13:13 +0000)
committer
vsr
<vsr@opencascade.com>
Fri, 31 Jul 2009 13:13:17 +0000
(13:13 +0000)
src/SMESHGUI/SMESHGUI_VTKUtils.cxx
patch
|
blob
|
history
diff --git
a/src/SMESHGUI/SMESHGUI_VTKUtils.cxx
b/src/SMESHGUI/SMESHGUI_VTKUtils.cxx
index 00830c8d02e222788cb5275f00cc301a55e4cb5c..86bfdba72eb1c6360ca9975d2098d1cdc199093a 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();