Import 2017-06-07 23:51:09: master 14a9c5ca

Author Committer Branch Timestamp Parent
lassoan lassoan master 2016-05-21 07:24:33 master 9cf170a4

BUG: Fixed crash in vtkNRRDReader when attepting to read a 4D spatial file

Problem was that when scalar type was not supported, target memory area pointer for memcpy remained NULL.
Also reduced the number of cases when CanReadFile returns true but the reader cannot actually read the file.

The reader was really messy, so cleaned it up (smart pointers, variable definitions, formatting, etc), without any functional changes.

git-svn-id: 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Libs/vtkTeem/vtkNRRDReader.cxx Diff File
mod - Libs/vtkTeem/vtkNRRDReader.h Diff File