]> Creatis software - clitk.git/blobdiff - vv/vtkVOXImageWriter.cxx
Remove warning with VTK7.1
[clitk.git] / vv / vtkVOXImageWriter.cxx
index 7ffecb5edbe6e4b3671005864ce82b435c31788d..911091e0a7958abdb7cd3c9b7b04192bb07c8fcc 100644 (file)
@@ -144,6 +144,9 @@ void vtkVOXImageWriter::Write( )
                                     ext[2], ext[3],
                                     ext[4], ext[5]);
   this->GetInput()->UpdateData();
+#elif VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1
+  this->UpdateExtent(ext);
+  this->Update();
 #else
   this->SetUpdateExtent(ext);
   this->Update();