]> Creatis software - clitk.git/commitdiff
Error in loop for removing actors in destructor
authorsrit <srit>
Tue, 29 Mar 2011 09:06:23 +0000 (09:06 +0000)
committersrit <srit>
Tue, 29 Mar 2011 09:06:23 +0000 (09:06 +0000)
vv/vvBinaryImageOverlayActor.cxx

index ca0a6b2d039ab71585c83cb0cf73815b32d51781..043afcc3011623bf14c2e2bbafc7eeb145c39a43 100644 (file)
@@ -49,7 +49,7 @@ vvBinaryImageOverlayActor::vvBinaryImageOverlayActor()
 //------------------------------------------------------------------------------
 vvBinaryImageOverlayActor::~vvBinaryImageOverlayActor()
 {
-  for (unsigned int i = 0; i < mSlicer->GetImage()->GetVTKImages().size(); i++) {
+  for (unsigned int i = 0; i < mImageActorList.size(); i++) {
     mSlicer->GetRenderer()->RemoveActor(mImageActorList[i]);
   }
 }