vtkTIFFReader reading multi-page tiff returns a volume with one more slice than was read
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
If you connect a vkvImageViewer2 viewer to a tiff reader and load a multi-page tiff, the viewer's GetSliceMin() returns 0 and GetSliceMax() returns the number of pages read, hence indicating there are one more page than actually present. This causes junk to be displayed and presumably might cause a crash.
To fix, search in vtkTIFFReader.cxx for where this->DataExtent members are set. The odd numbered values should always be set to one less than the count. 5 places to fix.