From: srit Date: Tue, 29 Mar 2011 09:06:23 +0000 (+0000) Subject: Error in loop for removing actors in destructor X-Git-Tag: v1.2.0~92 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=ff9a70c82c824ac0cbd297d65761100737f09b8e;p=clitk.git Error in loop for removing actors in destructor --- 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]); } }