X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocument.cxx;h=2bf79ead5b000e767932fba248527d599996b0ea;hb=5e388c2be804f3d3502a2f6e1e1c0dd9457069d9;hp=489be6e66a311f6da09e77bb529ec16e6bd8d7ed;hpb=2ee201a59464bbbd6d97c04b29746971567439d3;p=gdcm.git diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index 489be6e6..2bf79ead 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -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 15:52:46 $ + Version: $Revision: 1.320 $ 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,13 @@ 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; break; } case 2: