X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vtk%2FvtkGdcmReader.cxx;h=bb13548d7d781aae6d3e864083e5c553019c5163;hb=8f4652ccc78659f8b5fa4784d3a372cb37f0c702;hp=db2e605d7a2938250a3fb881c0094a0f5edc2abf;hpb=782148a7d7ce94d80c77fe76d4b911b5b199c297;p=gdcm.git diff --git a/vtk/vtkGdcmReader.cxx b/vtk/vtkGdcmReader.cxx index db2e605d..bb13548d 100644 --- a/vtk/vtkGdcmReader.cxx +++ b/vtk/vtkGdcmReader.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: vtkGdcmReader.cxx,v $ Language: C++ - Date: $Date: 2005/04/28 09:29:05 $ - Version: $Revision: 1.69 $ + Date: $Date: 2005/04/28 14:32:54 $ + Version: $Revision: 1.70 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -83,7 +83,7 @@ #include #include -vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.69 $"); +vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.70 $"); vtkStandardNewMacro(vtkGdcmReader); //----------------------------------------------------------------------------- @@ -745,7 +745,10 @@ int vtkGdcmReader::CheckFileCoherenceLight() } int NX = GdcmFile.GetXSize(); int NY = GdcmFile.GetYSize(); - int NZ = GdcmFile.GetZSize(); + // CheckFileCoherenceLight should be called *only* when user knows + // he deals with single frames files. + // Z size is then the number of files. + int NZ = InternalFileNameList.size(); std::string type = GdcmFile.GetPixelType(); vtkDebugMacro(<< "The first file is taken as reference: " << filename->c_str());