X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicer.cxx;h=ec8259059a6b13afd877f50347bc1c841c5c2ec1;hb=4c7c440af01cab76e8a1c288aaa37da4ed0f10b0;hp=19c4516343b8e3a271f5fe49c9e8bb4cc1759e6a;hpb=056be04b5ecaf235c86104c3b3c89ac71e0d2b3c;p=clitk.git diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 19c4516..ec82590 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -75,8 +75,8 @@ #include #include #include -#include #if VTK_MAJOR_VERSION >= 6 || (VTK_MAJOR_VERSION >= 5 && VTK_MINOR_VERSION >= 10) +# include # include # include #endif @@ -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 } //------------------------------------------------------------------------------