X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvAnimatedGIFWriter.cxx;h=026ebe091dd877b5f3547d6c1f6f6df85e2153f9;hb=d14e4a0c980c241ba87ba8bce7602028be5d0862;hp=0ab7cb806d5c7aa7100ea1e620b73169f3763c2a;hpb=d6a6a206c0a533a60519e9b3e82fba48d1240c3e;p=clitk.git diff --git a/vv/vvAnimatedGIFWriter.cxx b/vv/vvAnimatedGIFWriter.cxx index 0ab7cb8..026ebe0 100644 --- a/vv/vvAnimatedGIFWriter.cxx +++ b/vv/vvAnimatedGIFWriter.cxx @@ -47,6 +47,11 @@ void vvAnimatedGIFWriter::Write() int *wExtent = this->GetInput()->GetWholeExtent(); this->GetInput()->SetUpdateExtent(wExtent); this->GetInput()->Update(); +#elif VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1 + this->UpdateInformation(); + int *wExtent = this->GetInput()->GetInformation()->Get(vtkDataObject::DATA_EXTENT()); + this->UpdateExtent(wExtent); + this->Update(); #else this->UpdateInformation(); int *wExtent = this->GetInput()->GetInformation()->Get(vtkDataObject::DATA_EXTENT());