From: regrain Date: Wed, 17 Nov 2004 10:23:30 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: Version1.0.bp~585 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;ds=inline;h=4972f09e5e59026101c4e808423bc35906f5f549;p=gdcm.git *** empty log message *** --- diff --git a/src/gdcmHeader.cxx b/src/gdcmHeader.cxx index 002c20ff..2a4cef16 100644 --- a/src/gdcmHeader.cxx +++ b/src/gdcmHeader.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmHeader.cxx,v $ Language: C++ - Date: $Date: 2004/11/16 16:49:01 $ - Version: $Revision: 1.202 $ + Date: $Date: 2004/11/17 10:23:30 $ + Version: $Revision: 1.203 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -380,6 +380,7 @@ float Header::GetZSpacing() { return (float)atof( strSpacingBSlices.c_str() ); } + return 1.; } /** diff --git a/vtk/vtkGdcmReader.cxx b/vtk/vtkGdcmReader.cxx index 64a369f1..550f9414 100644 --- a/vtk/vtkGdcmReader.cxx +++ b/vtk/vtkGdcmReader.cxx @@ -58,7 +58,7 @@ #include #include -vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.53 $"); +vtkCxxRevisionMacro(vtkGdcmReader, "$Revision: 1.54 $"); vtkStandardNewMacro(vtkGdcmReader); //----------------------------------------------------------------------------- @@ -660,7 +660,6 @@ size_t vtkGdcmReader::LoadImageInMemory( source = (unsigned char*)file.GetImageData(); } - unsigned char * pSource = source; //pointer for later deletion unsigned char * destination = dest + size - lineSize; for (int plane = 0; plane < numPlanes; plane++) @@ -694,7 +693,9 @@ size_t vtkGdcmReader::LoadImageInMemory( // CLEANME // Now, the delete on values keep from GetImageData is useless (made in // the PixelConvert class) - //delete[] pSource; + +// unsigned char * pSource = source; //pointer for later deletion +// delete[] pSource; return size; }