X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicer.cxx;h=2089d41caa3d564e5e076b0e3f94df4710d56fb5;hb=7c3a1ed465d26af874906bfbfbb0ae4c7b72ad64;hp=4a4a5154bbd65655e350aee34b7489068749d1e4;hpb=ba7eb37f66c14a90fe67ac035ecf9d8bc70fef1a;p=clitk.git 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 ||