From db1fce845da15ac329aaa4e58d94af6bebbb8cba Mon Sep 17 00:00:00 2001 From: tbaudier Date: Tue, 15 Dec 2015 11:35:20 +0100 Subject: [PATCH] Debug Cancel crop + rigid registration --- vv/vvToolCropImage.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); } -- 2.47.1