]> Creatis software - clitk.git/blobdiff - vv/vvSlicer.cxx
Ensure compatibility with VTK6 in vvSlicer
[clitk.git] / 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
 }
 //------------------------------------------------------------------------------