X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmSeqEntry.cxx;h=25a2c2679d5d36d39e1a81717ca90ed3c05ce141;hb=74e3bc05fade5a18f193e7d1122c74756c0e689e;hp=8ece4978a456d8d7a8526cee5e8b061a7d65e5de;hpb=1bae8d2ba47d1b9cc8acfb7b5ab82026e48275dd;p=gdcm.git diff --git a/src/gdcmSeqEntry.cxx b/src/gdcmSeqEntry.cxx index 8ece4978..25a2c267 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/11/25 15:46:11 $ - Version: $Revision: 1.38 $ + Date: $Date: 2004/12/16 13:46:37 $ + Version: $Revision: 1.40 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -72,7 +72,7 @@ SeqEntry::~SeqEntry() { delete *cc; } - if (!SeqTerm) + if (SeqTerm) { delete SeqTerm; } @@ -84,8 +84,6 @@ SeqEntry::~SeqEntry() void SeqEntry::Print( std::ostream &os ) { // First, Print the Dicom Element itself. - SetPrintLevel(2); - os << "S "; DocEntry::Print(os); os << std::endl; @@ -96,6 +94,7 @@ void SeqEntry::Print( std::ostream &os ) // Then, Print each SQ Item for(ListSQItem::iterator cc = Items.begin(); cc != Items.end(); ++cc) { + (*cc)->SetPrintLevel(PrintLevel); (*cc)->Print(os); } @@ -108,6 +107,7 @@ void SeqEntry::Print( std::ostream &os ) } if (SeqTerm != NULL) { + SeqTerm->SetPrintLevel(PrintLevel); SeqTerm->Print(os); os << std::endl; }