From: frog Date: Wed, 23 Jun 2004 15:01:57 +0000 (+0000) Subject: Bugfixes. --- JPR (with frog) X-Git-Tag: Version0.5.bp~105 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=65f457a97152fce4878d7aa20ec02f4ccda20705;p=gdcm.git Bugfixes. --- JPR (with frog) --- diff --git a/src/gdcmBinEntry.cxx b/src/gdcmBinEntry.cxx index dc8fa2db..e57f5dfb 100644 --- a/src/gdcmBinEntry.cxx +++ b/src/gdcmBinEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmBinEntry.cxx,v $ Language: C++ - Date: $Date: 2004/06/23 13:02:35 $ - Version: $Revision: 1.16 $ + Date: $Date: 2004/06/23 15:01:57 $ + Version: $Revision: 1.17 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -69,14 +69,13 @@ void gdcmBinEntry::Print(std::ostream &os) if (voidArea != NULL) { s << " [gdcm::Binary data loaded with length is " - << GetLength() << "]" - << std::endl; + << GetLength() << "]"; } else { - s << " [gdcm::Binary data NOT loaded]" - << std::endl; + s << " [gdcm::Binary data NOT loaded]"; } + os << s.str(); } /* diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index c91e0f0a..e29c08bf 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2004/06/23 13:54:56 $ - Version: $Revision: 1.28 $ + Date: $Date: 2004/06/23 15:01:57 $ + Version: $Revision: 1.29 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1227,9 +1227,16 @@ long gdcmDocument::ParseDES(gdcmDocEntrySet *set, long offset, long l_max, bool NewDocEntry->GetElement() == 0x0010 ) { if (NewDocEntry->GetLength()==0xffffffff) + { // Broken US.3405.1.dcm Parse7FE0(); // to skip the pixels // (multipart JPEG/RLE are trouble makers) + } + else + { + SkipToNextDocEntry(NewDocEntry); + l = NewDocEntry->GetFullLength(); + } } else { diff --git a/src/gdcmSeqEntry.cxx b/src/gdcmSeqEntry.cxx index a42f7f16..6026a867 100644 --- a/src/gdcmSeqEntry.cxx +++ b/src/gdcmSeqEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSeqEntry.cxx,v $ Language: C++ - Date: $Date: 2004/06/23 13:02:36 $ - Version: $Revision: 1.18 $ + Date: $Date: 2004/06/23 15:01:57 $ + Version: $Revision: 1.19 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -76,6 +76,7 @@ void gdcmSeqEntry::Print(std::ostream &os){ os << " | " ; if (seq_term != NULL) { seq_term->Print(os); + os << std::endl; } else os << " -------------- should have a sequence terminator item";