From: regrain Date: Thu, 3 Jul 2003 16:33:31 +0000 (+0000) Subject: * src/gdcmFile.cxx : bug fix under Window after JPR commit X-Git-Tag: Version0.3~8 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9f643008e8a960617fb30ed9dcd454612657e5d2;p=gdcm.git * src/gdcmFile.cxx : bug fix under Window after JPR commit RQ : the JPR doesn't appear in the ChangeLog... normal for him -- BeNours --- diff --git a/ChangeLog b/ChangeLog index a806cbb1..ba66981b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ 2003-07-03 Eric Boix * vtk/Makefile.am: vtkGdcmReader.h should now be cleany installed when using make instal. + * src/gdcmFile.cxx : bug fix under Window after JPR commit + RQ : the JPR doesn't appear in the ChangeLog... normal for him 2003-07-03 Benoit Regrain * setup.py : adding include dir of jpeg lib to compile all sources diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index f7294197..94f86cb7 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -196,9 +196,7 @@ bool gdcmFile::ReadPixelData(void* destination) { return false; } - int res = gdcm_read_JPEG_file (destination); - if (DEBUG) - printf ("res : %d\n",res); + bool res = (bool)gdcm_read_JPEG_file (destination); return res; } @@ -325,7 +323,7 @@ size_t gdcmFile::GetImageDataIntoVector (void* destination, size_t MaxSize) { // TODO : // any trick not to have to allocate temporary buffer is welcome ... char *x = newDest; - for (int i=0;i