]> Creatis software - clitk.git/blobdiff - vv/vvSlicer.cxx
Debug vf display
[clitk.git] / vv / vvSlicer.cxx
index 314b58ca5cff344e8a43b42885365b26c2c6c392..690ff2ab17689989ed4788a322380eaf67848170 100644 (file)
@@ -1187,7 +1187,7 @@ void vvSlicer::UpdateDisplayExtent()
 #else
     //this->UpdateInformation();
     this->ConvertImageToImageDisplayExtent(mImageReslice->GetOutputInformation(0), w_ext, mVF->GetVTKImages()[0], vfExtent);
-    bool out = ClipDisplayedExtent(vfExtent, mVOIFilter->GetInputInformation()->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT()));
+    bool out = ClipDisplayedExtent(vfExtent, mImage->GetVTKImages()[mCurrentTSlice]->GetInformation()->Get(vtkDataObject::DATA_EXTENT()));
 #endif
     mVFActor->SetVisibility(!out);
     mVOIFilter->SetVOI(vfExtent);