From: tbaudier Date: Tue, 15 Dec 2015 10:35:20 +0000 (+0100) Subject: Debug Cancel crop + rigid registration X-Git-Tag: v1.4.0~82 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=db1fce845da15ac329aaa4e58d94af6bebbb8cba;p=clitk.git Debug Cancel crop + rigid registration --- diff --git a/vv/vvToolCropImage.cxx b/vv/vvToolCropImage.cxx index d191f04..2de9858 100644 --- a/vv/vvToolCropImage.cxx +++ b/vv/vvToolCropImage.cxx @@ -102,6 +102,8 @@ void vvToolCropImage::closeEvent(QCloseEvent *event) for(int i=0; i<6; i++){ mReducedExtent[i] = mInitialExtent[i]; } + for(int i=0; iGetNumberOfSlicers(); i++) + mCurrentSlicerManager->GetSlicer(i)->EnableReducedExtent(false); UpdateExtent(); } vvToolWidgetBase::closeEvent(event); @@ -120,7 +122,10 @@ bool vvToolCropImage::close() //------------------------------------------------------------------------------ void vvToolCropImage::reject() { - for(int i=0; iGetNumberOfSlicers(); i++) + mCurrentSlicerManager->GetSlicer(i)->EnableReducedExtent(false); UpdateExtent(); return vvToolWidgetBase::reject(); }