Index: vtkVolumeRayCastMapper.cxx =================================================================== RCS file: /cvsroot/VTK/VTK/VolumeRendering/vtkVolumeRayCastMapper.cxx,v retrieving revision 1.6 diff -u -r1.6 vtkVolumeRayCastMapper.cxx --- vtkVolumeRayCastMapper.cxx 17 Feb 2009 17:25:03 -0000 1.6 +++ vtkVolumeRayCastMapper.cxx 10 Jun 2009 17:37:01 -0000 @@ -1369,8 +1369,8 @@ (this->ImageViewportSize[1]-1):(maxY); // Create the new image, and set its size and position - this->ImageInUseSize[0] = static_cast(maxX - minX + 1.0); - this->ImageInUseSize[1] = static_cast(maxY - minY + 1.0); + this->ImageInUseSize[0] = static_cast(maxX) - static_cast(minX) + 1 ; + this->ImageInUseSize[1] = static_cast(maxY) - static_cast(minY) + 1 ; // What is a power of 2 size big enough to fit this image? this->ImageMemorySize[0] = 32;