From 7c3a1ed465d26af874906bfbfbb0ae4c7b72ad64 Mon Sep 17 00:00:00 2001 From: Thomas BAUDIER Date: Wed, 4 Dec 2019 13:09:40 +0100 Subject: [PATCH] Allow to display in all directions for images with size 2 and 3 in 3rd direction --- vv/vvSlicer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 || -- 2.47.1