From: tbaudier Date: Thu, 10 Mar 2016 15:58:22 +0000 (+0100) Subject: Ensure compatibility with VTK6 in vvSlicer X-Git-Tag: v1.4.0~28 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=5c23ebe368dbe9efd1ea1d70b67801f424f3ac94;p=clitk.git Ensure compatibility with VTK6 in vvSlicer --- 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 } //------------------------------------------------------------------------------