From: Thomas BAUDIER Date: Wed, 4 Dec 2019 12:09:40 +0000 (+0100) Subject: Allow to display in all directions for images with size 2 and 3 in 3rd direction X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7c3a1ed465d26af874906bfbfbb0ae4c7b72ad64;p=clitk.git Allow to display in all directions for images with size 2 and 3 in 3rd direction --- diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 4a4a515..2089d41 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -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 ||