From 9f643008e8a960617fb30ed9dcd454612657e5d2 Mon Sep 17 00:00:00 2001 From: regrain Date: Thu, 3 Jul 2003 16:33:31 +0000 Subject: [PATCH] * src/gdcmFile.cxx : bug fix under Window after JPR commit RQ : the JPR doesn't appear in the ChangeLog... normal for him -- BeNours --- ChangeLog | 2 ++ src/gdcmFile.cxx | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) 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