]> Creatis software - clitk.git/blobdiff - vv/vtkVOXImageWriter.cxx
Debug RTStruct conversion with empty struc
[clitk.git] / vv / vtkVOXImageWriter.cxx
index 7ffecb5edbe6e4b3671005864ce82b435c31788d..b703e96b4d5da7436ff024654d292c3936924837 100644 (file)
@@ -144,6 +144,9 @@ void vtkVOXImageWriter::Write( )
                                     ext[2], ext[3],
                                     ext[4], ext[5]);
   this->GetInput()->UpdateData();
+#elif VTK_MAJOR_VERSION >= 8 || (VTK_MAJOR_VERSION == 7 && VTK_MINOR_VERSION >= 1)
+  this->UpdateExtent(ext);
+  this->Update();
 #else
   this->SetUpdateExtent(ext);
   this->Update();