]> Creatis software - clitk.git/commitdiff
Allow to display in all directions for images with size 2 and 3 in 3rd direction
authorThomas BAUDIER <thomas.baudier@creatis.insa-lyon.fr>
Wed, 4 Dec 2019 12:09:40 +0000 (13:09 +0100)
committerThomas BAUDIER <thomas.baudier@creatis.insa-lyon.fr>
Wed, 4 Dec 2019 12:09:40 +0000 (13:09 +0100)
vv/vvSlicer.cxx

index 4a4a5154bbd65655e350aee34b7489068749d1e4..2089d41caa3d564e5e076b0e3f94df4710d56fb5 100644 (file)
@@ -988,7 +988,7 @@ void vvSlicer::SetSliceOrientation(int orientation)
     copyExtent(ext, extent);
 #endif
 
-  if (extent[5]-extent[4] <= 2)
+  if (extent[5]-extent[4] < 1)
     orientation = vtkImageViewer2::SLICE_ORIENTATION_XY;
 
   if (orientation < vtkImageViewer2::SLICE_ORIENTATION_YZ ||