]> Creatis software - clitk.git/commitdiff
Debug segmentation fault when apply the Crop tool
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 9 Dec 2015 11:08:16 +0000 (12:08 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 9 Dec 2015 11:08:16 +0000 (12:08 +0100)
vv/vvToolCropImage.cxx

index 19297d3..d191f04 100644 (file)
@@ -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];
   }