X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocument.cxx;h=8ac4b2296ae0d43209ef487b7bfed0319bf1e90c;hb=880f6dfe2e061712fafbf75ab9547aadf170fc40;hp=d2991e701c874f6862f9ab85fb4bbd6e267ddc96;hpb=608c76cbf839ee2a9ff9dcbc0ed56bfee3b9fe42;p=gdcm.git diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index d2991e70..8ac4b229 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2006/04/11 16:03:26 $ - Version: $Revision: 1.346 $ + Date: $Date: 2006/05/05 22:13:55 $ + Version: $Revision: 1.347 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1744,18 +1744,18 @@ void Document::FixDocEntryFoundLength(DocEntry *entry, gdcmErrorMacro( "This looks like to a buggy Siemens DICOM file." "The length of this tag seems to be wrong" ); } - } - + } + else if ( entry->GetVR() == "SQ" ) { - foundLength = 0; // ReadLength is unchanged - } - - //////// We encountered a 'delimiter' element i.e. a tag of the form + foundLength = 0; // ReadLength is unchanged + } + + //////// We encountered a 'delimiter' element i.e. a tag of the form // "fffe|xxxx" which is just a marker. Delimiters length should not be // taken into account. else if ( gr == 0xfffe ) - { + { // According to the norm, fffe|0000 shouldn't exist. BUT the Philips // image gdcmData/gdcm-MR-PHILIPS-16-Multi-Seq.dcm happens to // causes extra troubles... @@ -1767,7 +1767,7 @@ void Document::FixDocEntryFoundLength(DocEntry *entry, { foundLength=12; // to skip the mess that follows this bugged Tag ! } - } + } entry->SetLength(foundLength); }