From: jpr Date: Wed, 14 Dec 2005 10:00:28 +0000 (+0000) Subject: Let's take into account (again) LoadMode ! X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=507c357466602345e4bd9de6c475e0887cf2ba36;p=gdcm.git Let's take into account (again) LoadMode ! (Test suite was not strong enough to find the bug :-( ) --- diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index 049dda77..34b18e5f 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/12/09 12:23:38 $ - Version: $Revision: 1.333 $ + Date: $Date: 2005/12/14 10:00:28 $ + Version: $Revision: 1.334 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1098,7 +1098,6 @@ void Document::ParseDES(DocEntrySet *set, long offset, // Load only if we can add (not a duplicate key) LoadDocEntry( newDataEntry ); } - if ( newDataEntry->GetElement() == 0x0000 ) // if on group length { if ( newDataEntry->GetGroup()%2 != 0 ) // if Shadow Group @@ -1106,8 +1105,9 @@ void Document::ParseDES(DocEntrySet *set, long offset, if ( LoadMode & LD_NOSHADOW ) // if user asked to skip shad.gr { std::string strLgrGroup = newDataEntry->GetString(); + int lgrGroup; - if ( newDataEntry->IsUnfound() ) + //if ( newDataEntry->IsUnfound() ) /?!? JPR { lgrGroup = atoi(strLgrGroup.c_str()); Fp->seekg(lgrGroup, std::ios::cur);