]> Creatis software - gdcm.git/blobdiff - src/gdcmFile.cxx
* src/gdcmFile.cxx : bug fix under Window after JPR commit
[gdcm.git] / src / gdcmFile.cxx
index 70859f9dcffd1aa99cfb23a9999bec63a5c17798..94f86cb7e88c62d58d9f0eff77e2c7e45b7014b9 100644 (file)
@@ -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;
 }   
 
@@ -315,7 +313,7 @@ size_t gdcmFile::GetImageDataIntoVector (void* destination, size_t MaxSize) {
    // if (GetPlanarConfiguration() == 1) {
    // after unfreeze
    
-   if  (PlanarConfiguration == 1) { // need to make RGB Pixels
+   if (PlanarConfiguration == 1) { // need to make RGB Pixels
       int l = lgrTotale/3 ;
 
       char * a = (char *)destination;
@@ -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<l; i++) {
+      for (int j=0;j<l; j++) {
          *(x++) = *(a++);
          *(x++) = *(b++);
          *(x++) = *(c++);