X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocument.cxx;h=11b88a2e6fefc1d8b1aebba0dd568c1c0cdeda05;hb=6278320cc85da00d2d56ffbf07806e84966892c3;hp=62f286563ac8bc275fb601c84a192973ab035df7;hpb=224876ca6cbe71952f2a1d66d9853eca7745d3a0;p=gdcm.git diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index 62f28656..11b88a2e 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2008/01/07 18:12:02 $ - Version: $Revision: 1.379 $ + Date: $Date: 2008/09/15 15:49:22 $ + Version: $Revision: 1.381 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -284,10 +284,12 @@ bool Document::DoTheLoadingDocumentJob( ) std::string RecCode; RecCode = GetEntryString(0x0008, 0x0010); // recognition code (RET) + if(RecCode.find("ACRNEMA_LIBIDO") == 0 || // any version RecCode.find("CANRME_AILIBOD") == 0) // for brain-damaged softwares // with "little-endian strings" { + Filetype = ACR_LIBIDO; std::string rows = GetEntryString(0x0028, 0x0010); std::string columns = GetEntryString(0x0028, 0x0011); @@ -1546,7 +1548,7 @@ void Document::FindDocEntryLength( DocEntry *entry ) // (the 'straight' images will no longer be readable ...) if ( vr == "OB" || vr == "OW" || vr == "OL" || vr == "SQ" || vr == "UT" - || vr == "UN" || changeFromUN == true) + || vr == "UN" || changeFromUN == true) { changeFromUN = false; // The following reserved two bytes (see PS 3.5-2003, section