From 5c23ebe368dbe9efd1ea1d70b67801f424f3ac94 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Thu, 10 Mar 2016 16:58:22 +0100 Subject: [PATCH] Ensure compatibility with VTK6 in vvSlicer --- vv/vvSlicer.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 19c4516..95296af 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -1050,7 +1050,9 @@ void vvSlicer::AdjustResliceToSliceOrientation(vtkImageReslice *reslice) reslice->SetOutputOrigin(origin); reslice->SetOutputSpacing(spacing); reslice->UpdateInformation(); +#if VTK_MAJOR_VERSION <= 5 reslice->GetOutput()->UpdateInformation(); +#endif } //------------------------------------------------------------------------------ -- 2.45.1