From c26f94a374d0989dc23e4c7635ac7cfeba52b67c Mon Sep 17 00:00:00 2001 From: malaterre Date: Tue, 18 Sep 2007 07:54:30 +0000 Subject: [PATCH] COMP: Please dont add code that do not even compile --- vtk/vtkgdcmViewer.cxx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/vtk/vtkgdcmViewer.cxx b/vtk/vtkgdcmViewer.cxx index 39b7c6c8..0c0029b7 100644 --- a/vtk/vtkgdcmViewer.cxx +++ b/vtk/vtkgdcmViewer.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: vtkgdcmViewer.cxx,v $ Language: C++ - Date: $Date: 2007/08/28 09:41:39 $ - Version: $Revision: 1.30 $ + Date: $Date: 2007/09/18 07:54:30 $ + Version: $Revision: 1.31 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -67,19 +67,9 @@ public: { if ( event == vtkCommand::CharEvent ) { -#if (VTK_MAJOR_VERSION >= 5) - int max = ImageViewer->GetSliceMax(); - int slice = (ImageViewer->GetSlice() + 1 ) % ++max; - ImageViewer->SetSlice( slice ); -#else int max = ImageViewer->GetWholeZMax(); int slice = (ImageViewer->GetZSlice() + 1 ) % ++max; ImageViewer->SetZSlice( slice ); -#endif -#if !( (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION >= 5 ) ) - // This used to be a bug in version VTK 4.4 and earlier - ImageViewer->GetRenderer()->ResetCameraClippingRange(); -#endif ImageViewer->Render(); } } -- 2.45.1