From ff9a70c82c824ac0cbd297d65761100737f09b8e Mon Sep 17 00:00:00 2001 From: srit Date: Tue, 29 Mar 2011 09:06:23 +0000 Subject: [PATCH] Error in loop for removing actors in destructor --- vv/vvBinaryImageOverlayActor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vv/vvBinaryImageOverlayActor.cxx b/vv/vvBinaryImageOverlayActor.cxx index ca0a6b2..043afcc 100644 --- a/vv/vvBinaryImageOverlayActor.cxx +++ b/vv/vvBinaryImageOverlayActor.cxx @@ -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]); } } -- 2.47.1