]> Creatis software - gdcm.git/blobdiff - src/gdcmDocument.cxx
Commenting out useless code should avoid pb on Big Endian processors.
[gdcm.git] / src / gdcmDocument.cxx
index 489be6e66a311f6da09e77bb529ec16e6bd8d7ed..d9767fd616de8ec00c5588d209ede837870273fb 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/27 16:52:44 $
-  Version:   $Revision: 1.316 $
+  Date:      $Date: 2005/10/28 12:44:26 $
+  Version:   $Revision: 1.319 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -187,7 +187,7 @@ bool Document::DoTheLoadingDocumentJob(  )
       /// In order to fix things "Quick and Dirty" the dictionary was
       /// altered on PURPOSE but now contains a WRONG value.
       /// In order to fix things and restore the dictionary to its
-      /// correct value, one needs to decided of the semantics by deciding
+      /// correct value, one needs to decide of the semantics by deciding
       /// whether the following tags are either :
       /// - multivaluated US, and hence loaded as ValEntry, but afterwards
       ///   also used as BinEntry, which requires the proper conversion,
@@ -531,6 +531,7 @@ double Document::SwapDouble(double a)
       case 1234 :
          break;
       case 4321 :
+         {
          char *beg = (char *)&a;
          char *end = beg + 7;
          char t;
@@ -542,6 +543,7 @@ double Document::SwapDouble(double a)
             beg++,
             end--;  
          }
+         }
          break;   
       default :
          gdcmErrorMacro( "Unexpected swap code:" << SwapCode );
@@ -760,14 +762,14 @@ void Document::LoadEntryBinArea(DataEntry *entry)
                         Global::GetVR()->GetAtomicElementLength(entry->GetVR());
 
 // FIXME : trouble expected if we read an ... OW Entry (LUT, etc ..)
-   if( entry->GetVR() == "OW" )
-      vrLgth = 1;
+//   if( entry->GetVR() == "OW" )
+//      vrLgth = 1;
 
    switch(vrLgth)
    {
       case 1:
       {
-  std::cout << "Atomic lgt = 1 ; NO swap at reading" << std::endl;
+         gdcmDebugMacro( "Atomic lgt = 1 ; NO swap at reading");
          break;
       }     
       case 2: