]> Creatis software - clitk.git/blobdiff - vv/vvAnimatedGIFWriter.cxx
Debug RTStruct conversion with empty struc
[clitk.git] / vv / vvAnimatedGIFWriter.cxx
index 0ab7cb806d5c7aa7100ea1e620b73169f3763c2a..d72f253ecfa4f4d397eef6207faead81fb82bd45 100644 (file)
@@ -47,6 +47,11 @@ void vvAnimatedGIFWriter::Write()
   int *wExtent = this->GetInput()->GetWholeExtent();
   this->GetInput()->SetUpdateExtent(wExtent);
   this->GetInput()->Update();
+#elif VTK_MAJOR_VERSION >= 8 || (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());