]> Creatis software - clitk.git/commitdiff
Ensure compatibility with VTK6 in vvSlicer
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 10 Mar 2016 15:58:22 +0000 (16:58 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Thu, 10 Mar 2016 15:58:22 +0000 (16:58 +0100)
vv/vvSlicer.cxx

index 19c4516343b8e3a271f5fe49c9e8bb4cc1759e6a..95296af03f26e4a7e9c16a88f84742d75a94f6d5 100644 (file)
@@ -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
 }
 //------------------------------------------------------------------------------