]> Creatis software - clitk.git/blobdiff - vv/vvToolCropImage.cxx
Merge branch 'VTK6_Qt5_Registration' into VTK6_Qt5
[clitk.git] / vv / vvToolCropImage.cxx
index 9482947235e3e230ed80ed985afc5627bb9726b1..d191f04c63c10a97ee25ac69eae4a5d74af8a594 100644 (file)
@@ -99,7 +99,7 @@ void vvToolCropImage::closeEvent(QCloseEvent *event)
 {
   if(mCurrentSlicerManager){
 //     Reset extends
-    for(int i=0; i<mExtentSize; i++){
+    for(int i=0; i<6; i++){
       mReducedExtent[i] = mInitialExtent[i];
     }
     UpdateExtent();
@@ -265,7 +265,7 @@ void vvToolCropImage::apply()
   }
   // We MUST reset initial extend to input image before using the
   // filter to retrieve the correct image size
-  for(int i=0; i<mExtentSize; i++) {
+  for(int i=0; i<6; i++) {
     mReducedExtent[i] = mInitialExtent[i];
   }